From: nds Date: Wed, 24 Jan 2018 12:58:17 +0000 (+0300) Subject: #2403 Apply and Apply and Continue buttons are enabled without selection objects... X-Git-Tag: V_3.0.0RC1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=06960854c39a1f199931c7c590db3d4d09d2f3d8;p=modules%2Fshaper.git #2403 Apply and Apply and Continue buttons are enabled without selection objects in group --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 3e1b71133..db264ad2b 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -536,8 +536,8 @@ void XGUI_Workshop::onAcceptPlusActionClicked() ModuleBase_OperationFeature* aFOperation = dynamic_cast (anOperationMgr->currentOperation()); if (aFOperation) { - myOperationMgr->commitOperation(); - module()->launchOperation(aFOperation->id(), false); + if (myOperationMgr->commitOperation()) + module()->launchOperation(aFOperation->id(), false); } } }