|
|
|
@ -105,17 +105,17 @@ struct ExternalToolDialogPrivate {
|
|
|
|
|
void writeServiceTypes(KDesktopFile* desktopFile) {
|
|
|
|
|
TQButton* button=mContent->mFileAssociationGroup->selected();
|
|
|
|
|
if (!button) {
|
|
|
|
|
desktopFile->writeEntry("ServiceTypes", "*");
|
|
|
|
|
desktopFile->writeEntry("X-TDE-ServiceTypes", "*");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int id=mContent->mFileAssociationGroup->id(button);
|
|
|
|
|
if (id==ID_ALL_IMAGES) {
|
|
|
|
|
desktopFile->writeEntry("ServiceTypes", "image/*");
|
|
|
|
|
desktopFile->writeEntry("X-TDE-ServiceTypes", "image/*");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (id==ID_ALL_FILES) {
|
|
|
|
|
desktopFile->writeEntry("ServiceTypes", "*");
|
|
|
|
|
desktopFile->writeEntry("X-TDE-ServiceTypes", "*");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -126,7 +126,7 @@ struct ExternalToolDialogPrivate {
|
|
|
|
|
mimeTypes.append(item->text(0));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
desktopFile->writeEntry("ServiceTypes", mimeTypes);
|
|
|
|
|
desktopFile->writeEntry("X-TDE-ServiceTypes", mimeTypes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -213,7 +213,7 @@ struct ExternalToolDialogPrivate {
|
|
|
|
|
mContent->mName->setText(desktopFile->readName());
|
|
|
|
|
mContent->mCommand->setURL(desktopFile->readEntry("Exec"));
|
|
|
|
|
mContent->mIconButton->setIcon(desktopFile->readIcon());
|
|
|
|
|
TQStringList serviceTypes=desktopFile->readListEntry("ServiceTypes");
|
|
|
|
|
TQStringList serviceTypes=desktopFile->readListEntry("X-TDE-ServiceTypes");
|
|
|
|
|
updateFileAssociationGroup(serviceTypes);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|