]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Enter processing is corrected according to modifications from Dev_1.5.0 (from BR_POST...
authornds <nds@opencascade.com>
Tue, 3 Nov 2015 09:31:38 +0000 (12:31 +0300)
committernds <nds@opencascade.com>
Tue, 3 Nov 2015 09:31:38 +0000 (12:31 +0300)
src/PartSet/PartSet_SketcherReetntrantMgr.cpp

index a5ae29b2676b13f3c3c509b9f80766ebcd54a83c..6e40f33b31696da601345807f4a59b281f752e87 100755 (executable)
@@ -238,17 +238,15 @@ void PartSet_SketcherReetntrantMgr::onVertexSelected()
 
 void PartSet_SketcherReetntrantMgr::onBeforeStopped()
 {
+  if (!isActiveMgr() || !myIsInternalEditOperation)
+    return;
+
   ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
                                                       (myWorkshop->currentOperation());
   if (aFOperation) {
     disconnect(aFOperation, SIGNAL(beforeCommitted()), this, SLOT(onBeforeStopped()));
     disconnect(aFOperation, SIGNAL(beforeAborted()), this, SLOT(onBeforeStopped()));
   }
-  if (!isActiveMgr())
-    return;
-
-  if (!myIsInternalEditOperation)
-    return;
 
   PartSet_Module* aModule = module();
   ModuleBase_ModelWidget* aFirstWidget = aModule->activeWidget();