From 999e9dd1f50ed68c3e04977554c78270270a4cf5 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 3 Dec 2014 11:21:48 +0300 Subject: [PATCH] Provide working with pre-selection --- src/ModuleBase/ModuleBase_Operation.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.2