]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Dragging improved
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 28 Nov 2014 12:20:54 +0000 (15:20 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 28 Nov 2014 12:20:54 +0000 (15:20 +0300)
src/PartSet/PartSet_Module.cpp

index f811715c6488407ec82cb1853e272ea6a2f9771d..0ab84bf8260d8d9f8683abe29d1977b6beb48259 100644 (file)
@@ -71,6 +71,7 @@
 #include <QMouseEvent>
 #include <QString>
 #include <QTimer>
+#include <QApplication>
 
 #include <GeomAlgoAPI_FaceBuilder.h>
 #include <GeomDataAPI_Dir.h>
@@ -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()));
     }
   }
 }