]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Provide working with pre-selection
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 3 Dec 2014 08:21:48 +0000 (11:21 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 3 Dec 2014 08:21:48 +0000 (11:21 +0300)
src/ModuleBase/ModuleBase_Operation.cpp

index 9f062b7adbbddf058bae391b0399965fe7a01cc7..892a6780b959cee35de1c40523494b53ba7c872a 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <Events_Loop.h>
 
-#include <QApplication>
+#include <QTimer>
 
 #ifdef _DEBUG
 #include <QDebug>
@@ -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