]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#2403 Apply and Apply and Continue buttons are enabled without selection objects...
authornds <nds@opencascade.com>
Wed, 24 Jan 2018 12:58:17 +0000 (15:58 +0300)
committernds <nds@opencascade.com>
Wed, 24 Jan 2018 12:58:17 +0000 (15:58 +0300)
src/XGUI/XGUI_Workshop.cpp

index 3e1b71133ab512493815c04320aa61ae748ba60f..db264ad2b9692a920a7f7c0aec80633dae47293b 100755 (executable)
@@ -536,8 +536,8 @@ void XGUI_Workshop::onAcceptPlusActionClicked()
     ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
                                                     (anOperationMgr->currentOperation());
     if (aFOperation) {
-      myOperationMgr->commitOperation();
-      module()->launchOperation(aFOperation->id(), false);
+      if (myOperationMgr->commitOperation())
+        module()->launchOperation(aFOperation->id(), false);
     }
   }
 }