From: sbh Date: Wed, 24 Sep 2014 13:26:15 +0000 (+0400) Subject: Issue #144 Corrections in immediate commit X-Git-Tag: V_0.4.4~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=80a94cad963ac05f464d825cbac8da64b9bf6953;p=modules%2Fshaper.git Issue #144 Corrections in immediate commit --- diff --git a/src/PartSet/PartSet_OperationFeatureBase.cpp b/src/PartSet/PartSet_OperationFeatureBase.cpp index e369667bb..c1da278fa 100644 --- a/src/PartSet/PartSet_OperationFeatureBase.cpp +++ b/src/PartSet/PartSet_OperationFeatureBase.cpp @@ -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(); - } } }