[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Mon Jul 12 22:11:06 CEST 2004


CVS commit by arwalker: 

Fix the previous fix so that we can view the fits results.


  M +9 -7      kstviewfitsdialog_i.cpp   1.5


--- kdeextragear-2/kst/kst/kstviewfitsdialog_i.cpp  #1.4:1.5
@@ -80,13 +80,15 @@ void KstViewFitsDialogI::fillComboBox( c
 
 void KstViewFitsDialogI::updateViewFitsDialog() {
+  int iIndex;
+  QString strOld;
+
   if (_comboBoxFits->listBox()->isVisible()) {
     QTimer::singleShot(250, this, SLOT(updateViewFitsDialog()));
-    return;
-  }
-
+  } else {
   if (_comboBoxFits->count() > 0) {
-    int iIndex = _comboBoxFits->currentItem();
-    QString old = _comboBoxFits->text( iIndex );
-    fillComboBox( old );
+      iIndex = _comboBoxFits->currentItem();
+      strOld = _comboBoxFits->text( iIndex );
+    }
+    fillComboBox( strOld );
   }
 }





More information about the Kst mailing list