From: nds Date: Thu, 10 Dec 2015 07:32:56 +0000 (+0300) Subject: #1042 Sometimes when setting distance constraints, the input field is not displayed... X-Git-Tag: V_2.1.0~198 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f28710ce45fe4e1f020823cdbf93513bae9b9039;p=modules%2Fshaper.git #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. --- 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(); } }