[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Jul 7 02:10:58 CEST 2003


CVS commit by staikos: 


keep the toolbar action status in sync when restoring with session management.

Is this a kdelibs bug?  It seems to me that this should be automatic.


  M +3 -2      kst.cpp   1.38
  M +0 -6      main.cpp   1.27


--- kdeextragear-2/kst/kst/kst.cpp  #1.37:1.38
@@ -169,4 +169,7 @@ void KstApp::initActions() {
   ToolBarAction = KStdAction::showToolbar(this, SLOT(slotViewToolBar()),
                                           actionCollection());
+  // Hack
+  ToolBarAction->setChecked(toolBar("mainToolBar")->isVisible());
+
   /************/
   StatusBarAction = KStdAction::showStatusbar(this, SLOT(slotViewStatusBar()),

--- kdeextragear-2/kst/kst/main.cpp  #1.26:1.27
@@ -227,9 +227,4 @@ int main(int argc, char *argv[]) {
 
   if (app.isRestored()) {
-    // code to test if isRestored is ever true... seems not :(
-    //     FILE *fp = fopen("/tmp/tmpmain.test","w");
-    //     fprintf(fp, "test readProps\n");
-    //     fclose(fp);
-
     RESTORE(KstApp);
   } else {




More information about the Kst mailing list