From f28710ce45fe4e1f020823cdbf93513bae9b9039 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 10 Dec 2015 10:32:56 +0300 Subject: [PATCH] #1042 Sometimes when setting distance constraints, the input field is not displayed in the 3D view SALOME mode: debug: wrong case: Several times click on dimension constraint digit - some times digit is not shown, sometimes it is shown. Edit distance, double click, when operation is moved to Sketch, before launching a new operation, double click is processed by QApplication::processEvents. --- src/PartSet/PartSet_SketcherMgr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index a90f4a0f8..c308eea3a 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -416,8 +416,12 @@ void PartSet_SketcherMgr::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseE // TODO: Has to be uncommented when SALOME patch on draw mode become avialable myPreviousDrawModeEnabled = aViewer->enableDrawMode(false); + // this is temporary commented in order to avoid the following wrong case: + // Distance constraint is under edition, double click on the digit -> nothing happens + // because QApplication::processEvents() calls onMouseDoubleClick, which try to show editor + // but as the prev edit is commited an new one is not started, editor is not shown. // This is necessary in order to finalize previous operation - QApplication::processEvents(); + //QApplication::processEvents(); launchEditing(); } } -- 2.39.2