[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Mon Jan 19 21:53:23 CET 2004


CVS commit by arwalker: 

If the desired plugin does not actually exist then ensure that KST does not crash, but instead alerts the user to the problem.


  M +19 -17    kstplugindialog_i.cpp   1.47


--- kdeextragear-2/kst/kst/kstplugindialog_i.cpp  #1.46:1.47
@@ -300,4 +300,5 @@ void KstPluginDialogI::new_I() {
   if (pitem >= 0 && PluginCombo->count() > 0) {
     KSharedPtr<Plugin> pPtr = PluginCollection::self()->plugin(_pluginList[pitem]);
+    if (pPtr != 0L) {
     plugin = new KstPlugin;
     if (!saveInputs(plugin, pPtr)) {
@@ -321,4 +322,5 @@ void KstPluginDialogI::new_I() {
     plugin->setTagName(tagName);
   }
+  }
 
   if (!plugin || !plugin->isValid()) {





More information about the Kst mailing list