]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #144 Corrections in immediate commit
authorsbh <sergey.belash@opencascade.com>
Wed, 24 Sep 2014 13:26:15 +0000 (17:26 +0400)
committersbh <sergey.belash@opencascade.com>
Wed, 24 Sep 2014 13:26:15 +0000 (17:26 +0400)
src/PartSet/PartSet_OperationFeatureBase.cpp

index e369667bbdc1a396791a87befb34e52e1fff88a3..c1da278fa020868570d496073c97f06c748d4924 100644 (file)
@@ -134,12 +134,14 @@ void PartSet_OperationFeatureBase::activateByPreselection()
     aValue.setObject(aPrs.object());
     if (myActiveWidget->setValue(&aValue)) {
       myPreSelection.remove(aPrs);
-      emit activateNextWidget(myActiveWidget);
+      if(isValid()) {
+        myActiveWidget = NULL;
+        commit();
+      } else {
+        emit activateNextWidget(myActiveWidget);
+      }
     }
     // If preselection is enough to make a valid feature - apply it immediately
-    if(isValid()) {
-      commit();
-    }
   }
 }