[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu May 22 17:13:24 CEST 2003
CVS commit by staikos:
This didn't work in HEAD for some reason, but worked in branch. This patch
ensures it works everywhere.
M +5 -4 pluginmanager.ui.h 1.12
--- kdeextragear-2/kst/kst/pluginmanager.ui.h #1.11:1.12
@@ -62,4 +62,5 @@ void PluginManager::install()
KURL tmpFileURL;
tmpFileURL.setPath(tmpFile);
+ pathURL.setFileName(xmlfile.fileName());
if (!KIO::NetAccess::dircopy(tmpFileURL, pathURL)) {
@@ -79,5 +80,5 @@ void PluginManager::remove()
}
- int rc = KMessageBox::questionYesNo(this, i18n("Are you sure you wish to remove the plugin \"%1\" from the system?").arg(item->text(1)), i18n("KST Plugin Loader"));
+ int rc = KMessageBox::questionYesNo(this, i18n("Are you sure you wish to remove the plugin \"%1\" from the system?").arg(item->text(0)), i18n("KST Plugin Loader"));
if (rc != KMessageBox::Yes) {
@@ -85,10 +86,10 @@ void PluginManager::remove()
}
- if (PluginCollection::self()->isLoaded(item->text(1))) {
- PluginCollection::self()->unloadPlugin(item->text(1));
+ if (PluginCollection::self()->isLoaded(item->text(0))) {
+ PluginCollection::self()->unloadPlugin(item->text(0));
item->setPixmap(0, locate("data", "kst/pics/no.png"));
}
- PluginCollection::self()->deletePlugin(PluginCollection::self()->pluginNameList()[item->text(1)]);
+ PluginCollection::self()->deletePlugin(PluginCollection::self()->pluginNameList()[item->text(0)]);
delete item;
More information about the Kst
mailing list