[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Aug 11 03:34:27 CEST 2003


CVS commit by staikos: 

don't wipe out the entry fields if the plugin manager is opened


  M +7 -3      kstplugindialog_i.cpp   1.45


--- kdeextragear-2/kst/kst/kstplugindialog_i.cpp  #1.44:1.45
@@ -100,5 +100,5 @@ void KstPluginDialogI::updatePluginList(
   PluginCollection *pc = PluginCollection::self();
   QString previous = _pluginList[PluginCombo->currentItem()];
-  int newFocus = 0;
+  int newFocus = -1;
 
   const QMap<QString,Plugin::Data>& _pluginMap = pc->pluginList();
@@ -120,6 +120,10 @@ void KstPluginDialogI::updatePluginList(
   }
 
+  if (newFocus != -1) {
   PluginCombo->setCurrentItem(newFocus);
-  pluginChanged(newFocus);
+  } else {
+    PluginCombo->setCurrentItem(0);
+    pluginChanged(0);
+  }
 }
 




More information about the Kst mailing list