From: vsv Date: Fri, 28 Nov 2014 12:20:54 +0000 (+0300) Subject: Dragging improved X-Git-Tag: V_0.6.0^2~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b172d191b2190d6d0756bc52d1ad9c0bc7c2413f;p=modules%2Fshaper.git Dragging improved --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index f811715c6..0ab84bf82 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -71,6 +71,7 @@ #include #include #include +#include #include #include @@ -332,13 +333,15 @@ void PartSet_Module::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseEvent* } else if (isSketchOpe && isEditing) { aOperation->abort(); - //myCurrentSketch = aOperation->parentFeature(); myIsDragging = true; get2dPoint(theWnd, theEvent, myCurX, myCurY); myDragDone = false; myWorkshop->viewer()->enableSelection(false); - QTimer::singleShot(10, this, SLOT(launchEditing())); + // This is necessary in order to finalize previous operation + QApplication::processEvents(); + launchEditing(); + //QTimer::singleShot(10, this, SLOT(launchEditing())); } } }