]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
The same, as in onEnterViewPort(): validation of the operation should be pefromed...
authornds <nds@opencascade.com>
Mon, 31 Aug 2015 16:57:11 +0000 (19:57 +0300)
committernds <nds@opencascade.com>
Mon, 31 Aug 2015 16:57:11 +0000 (19:57 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index dbbe99bb0f343e7d8887bef89acdc85d8da6c319..82b3d30211b800dd5fd51cdb69f508e066003d67 100644 (file)
@@ -227,7 +227,9 @@ void PartSet_SketcherMgr::onLeaveViewPort()
 {
   myIsMouseOverViewProcessed = false;
   myIsMouseOverWindow = false;
-  operationMgr()->onValidateOperation();
+  // it is important to validate operation here only if sketch entity create operation is active
+  // because at this operation we reacts to the mouse leave/enter view port
+  //operationMgr()->onValidateOperation();
 #ifdef DEBUG_MOUSE_OVER_WINDOW_FLAGS
   qDebug(QString("onLeaveViewPort: %1").arg(mouseOverWindowFlagsInfo()).toStdString().c_str());
 #endif
@@ -243,6 +245,8 @@ void PartSet_SketcherMgr::onLeaveViewPort()
   if (myIsPopupMenuActive)
     return;
 
+  operationMgr()->onValidateOperation();
+
   // 2. if the mouse IS NOT over window, reset the active widget value and hide the presentation
   ModuleBase_IWorkshop* aWorkshop = myModule->workshop();
   XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(aWorkshop);