From: nds Date: Mon, 31 Aug 2015 16:57:11 +0000 (+0300) Subject: The same, as in onEnterViewPort(): validation of the operation should be pefromed... X-Git-Tag: V_1.4.0_beta4~179 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b7298edf56ef8cbc903059859280cbce91c08c70;p=modules%2Fshaper.git The same, as in onEnterViewPort(): validation of the operation should be pefromed only in create sketch entity case. Otherwise it influence performance. --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index dbbe99bb0..82b3d3021 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -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(aWorkshop);