[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Jan 27 00:16:08 CET 2005


CVS commit by arwalker: 

Correctly handle enabling and disabling of the edit vector button.


  M +7 -0      vectorselector.ui.h   1.12


--- kdeextragear-2/kst/kst/vectorselector.ui.h  #1.11:1.12
@@ -98,4 +98,6 @@ void VectorSelector::setSelection( const
             _vector->setCurrentItem(0);
             blockSignals(false);
+
+      _editVector->setEnabled(false);
         }
         return;
@@ -104,4 +106,9 @@ void VectorSelector::setSelection( const
     _vector->setCurrentText(tag);  // What if it isn't in the combo?
     blockSignals(false);
+
+    KST::vectorList.lock().readLock();
+    KstRVectorPtr rvp = kst_cast<KstRVector>(*KST::vectorList.findTag(tag));
+    KST::vectorList.lock().readUnlock();
+    _editVector->setEnabled(rvp);
 }
 




More information about the Kst mailing list