From: vsv Date: Wed, 3 Dec 2014 08:21:48 +0000 (+0300) Subject: Provide working with pre-selection X-Git-Tag: V_0.6.0^2~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=999e9dd1f50ed68c3e04977554c78270270a4cf5;p=modules%2Fshaper.git Provide working with pre-selection --- diff --git a/src/ModuleBase/ModuleBase_Operation.cpp b/src/ModuleBase/ModuleBase_Operation.cpp index 9f062b7ad..892a6780b 100644 --- a/src/ModuleBase/ModuleBase_Operation.cpp +++ b/src/ModuleBase/ModuleBase_Operation.cpp @@ -30,7 +30,7 @@ #include -#include +#include #ifdef _DEBUG #include @@ -261,10 +261,10 @@ bool ModuleBase_Operation::activateByPreselection() } } if (isSet && canBeCommitted()) { - // if all widgets are filled with selection - bool aIsDone = commit(); - QApplication::processEvents(); - return aIsDone; + // if all widgets are filled with selection - commit + // in order to commit the operation outside of starting procedure - use timer event + QTimer::singleShot(50, this, SLOT(commit())); + return true; } else { //activate next widget