From b172d191b2190d6d0756bc52d1ad9c0bc7c2413f Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 28 Nov 2014 15:20:54 +0300 Subject: [PATCH] Dragging improved --- src/PartSet/PartSet_Module.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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())); } } } -- 2.39.2