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

Mike Fenton mike at staikos.net
Fri Jun 12 20:50:13 CEST 2009


SVN commit 981025 by fenton:

Fix crash when de-selecting draw based action.


 M  +20 -0     mainwindow.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #981024:981025
@@ -378,6 +378,8 @@
     _createBoxAct->setChecked(true);
     CreateBoxCommand *cmd = new CreateBoxCommand;
     cmd->createItem();
+  } else {
+    _tabWidget->currentView()->setMouseMode(View::Default);
   }
 }
 
@@ -389,6 +391,8 @@
     _createSharedAxisBoxAct->setChecked(true);
     CreateSharedAxisBoxCommand *cmd = new CreateSharedAxisBoxCommand;
     cmd->createItem();
+  } else {
+    _tabWidget->currentView()->setMouseMode(View::Default);
   }
 }
 
@@ -399,6 +403,8 @@
     _createCircleAct->setChecked(true);
     CreateCircleCommand *cmd = new CreateCircleCommand;
     cmd->createItem();
+  } else {
+    _tabWidget->currentView()->setMouseMode(View::Default);
   }
 }
 
@@ -409,6 +415,8 @@
     _createEllipseAct->setChecked(true);
     CreateEllipseCommand *cmd = new CreateEllipseCommand;
     cmd->createItem();
+  } else {
+    _tabWidget->currentView()->setMouseMode(View::Default);
   }
 }
 
@@ -419,6 +427,8 @@
     _createLabelAct->setChecked(true);
     CreateLabelCommand *cmd = new CreateLabelCommand;
     cmd->createItem();
+  } else {
+    _tabWidget->currentView()->setMouseMode(View::Default);
   }
 }
 
@@ -429,6 +439,8 @@
     _createLineAct->setChecked(true);
     CreateLineCommand *cmd = new CreateLineCommand;
     cmd->createItem();
+  } else {
+    _tabWidget->currentView()->setMouseMode(View::Default);
   }
 }
 
@@ -439,6 +451,8 @@
     _createArrowAct->setChecked(true);
     CreateArrowCommand *cmd = new CreateArrowCommand;
     cmd->createItem();
+  } else {
+    _tabWidget->currentView()->setMouseMode(View::Default);
   }
 }
 
@@ -449,6 +463,8 @@
     _createPictureAct->setChecked(true);
     CreatePictureCommand *cmd = new CreatePictureCommand;
     cmd->createItem();
+  } else {
+    _tabWidget->currentView()->setMouseMode(View::Default);
   }
 }
 
@@ -459,6 +475,8 @@
     _createPlotAct->setChecked(true);
     CreatePlotCommand *cmd = new CreatePlotCommand;
     cmd->createItem();
+  } else {
+    _tabWidget->currentView()->setMouseMode(View::Default);
   }
 }
 
@@ -469,6 +487,8 @@
     _createSvgAct->setChecked(true);
     CreateSvgCommand *cmd = new CreateSvgCommand;
     cmd->createItem();
+  } else {
+    _tabWidget->currentView()->setMouseMode(View::Default);
   }
 }
 


More information about the Kst mailing list