[Kst] extragear/graphics/kst/src/libkstapp

Andrew Walker arwalker at sumusltd.com
Fri Jan 5 00:34:09 CET 2007


SVN commit 619995 by arwalker:

When the fit being viewed is deleted ensure that the new fit being viewed updates appropriately.

 M  +7 -1      kstviewfitsdialog_i.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstviewfitsdialog_i.cpp #619994:619995
@@ -69,7 +69,8 @@
 
 void KstViewFitsDialogI::fillComboBox(const QString& str) {
   QString fitName = str;
-
+  bool changed = false;
+  
   _comboBoxFits->clear();
   KstCPluginList fits = kstObjectSubList<KstDataObject,KstCPlugin>(KST::dataObjectList);
   for (uint i = 0; i < fits.count(); i++) {
@@ -82,11 +83,16 @@
         if (fitName.isEmpty()) {
           fitName = fit->tagName();
         }
+        changed = true;
         fitChanged(fitName);
       }
     }
     fit->unlock();
   }
+
+  if (!changed) {
+    fitChanged(_comboBoxFits->currentText());
+  }
 }
 
 void KstViewFitsDialogI::updateViewFitsDialog() {


More information about the Kst mailing list