[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Mon Mar 8 23:41:12 CET 2004


CVS commit by arwalker: 

Ensure that the vector selector is updated whenever a new vector is created.


  M +6 -1      kstviewvectorsdialog_i.cpp   1.3


--- kdeextragear-2/kst/kst/kstviewvectorsdialog_i.cpp  #1.2:1.3
@@ -58,4 +58,5 @@ KstViewVectorsDialog(parent, name, modal
   connect( vectorSelector, SIGNAL( selectionChanged(const QString&) ), this, SLOT( vectorChanged(const QString&) ) );
   connect( vectorSelector, SIGNAL( newVectorCreated(const QString&) ), this, SLOT( vectorChanged(const QString&) ) );
+  connect( vectorSelector, SIGNAL( newVectorCreated(const QString&) ), this, SIGNAL(modified()));
   
   if( tableVectors->numCols( ) != 1 ) {  
@@ -78,5 +79,8 @@ void KstViewVectorsDialogI::updateViewVe
   QString strVector;
   
+  vectorSelector->update();
+  
   strVector = vectorSelector->selectedVector();
+  tableVectors->setVector(strVector);
   
   updateViewVectorsDialog(strVector);
@@ -86,6 +90,7 @@ void KstViewVectorsDialogI::updateViewVe
   QRect rect;
   int needed = 0;
-  KstVectorPtr vector = *KST::vectorList.findTag(strVector);
+  KstVectorPtr vector;
   
+  vector = *KST::vectorList.findTag(strVector);
   if( vector != NULL ) {
     needed = vector->length();





More information about the Kst mailing list