[Kst] branches/work/kst/1.5/kst/src/libkstapp

Andrew Walker arwalker at sumusltd.com
Wed Jul 4 21:30:10 CEST 2007


SVN commit 683483 by arwalker:

Disable data mode checkbox when not in zoom mode. No need to disable tied zoom when in layout mode.

 M  +7 -2      kst.cpp  


--- branches/work/kst/1.5/kst/src/libkstapp/kst.cpp #683482:683483
@@ -1861,8 +1861,13 @@
     mode = KstTopLevelView::DisplayMode;
   }
 
-  DataMode->setEnabled(!LayoutAction->isChecked());
-  _tiedZoomAction->setEnabled(!LayoutAction->isChecked());
+  if (XZoomAction->isChecked() ||
+      YZoomAction->isChecked() ||
+      XYZoomAction->isChecked()) {
+    DataMode->setEnabled(true);
+  } else {
+    DataMode->setEnabled(false);
+  }
 
   if (action) {
     KToolBarButton* button = toolBar()->getButton(5);


More information about the Kst mailing list