From: vsr Date: Mon, 6 Apr 2020 15:39:35 +0000 (+0300) Subject: bos #17637 Prevent resetting focus when mouse enters view X-Git-Tag: V9_5_0b1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a33531c6642042f2fe03f80bd5c7d80cdeb64193;p=modules%2Fhexablock.git bos #17637 Prevent resetting focus when mouse enters view --- diff --git a/src/HEXABLOCKGUI/MyBasicGUI_PointDlg.cxx b/src/HEXABLOCKGUI/MyBasicGUI_PointDlg.cxx index be2d0dc..ba9248e 100644 --- a/src/HEXABLOCKGUI/MyBasicGUI_PointDlg.cxx +++ b/src/HEXABLOCKGUI/MyBasicGUI_PointDlg.cxx @@ -1065,8 +1065,11 @@ void MyBasicGUI_PointDlg::onWindowActivated(SUIT_ViewManager* vm) QString vmType = vm->getType(); if ( ((vmType == SVTK_Viewer::Type()) || (vmType == VTKViewer_Viewer::Type())) && !mainFrame()->RadioButton4->isChecked() && - !myParamCoord->button(LENGTH_VALUE)->isChecked() ) - mainFrame()->_vertex_le->setFocus(); + !myParamCoord->button(LENGTH_VALUE)->isChecked() ){ + // VSR 2020-04-06 bos #17637 + // next line is commented out to prevent resetting focus when mouse enters the view + //mainFrame()->_vertex_le->setFocus(); + } else if ( vmType == OCCViewer_Viewer::Type() ){ if (mainFrame()->RadioButton1->isChecked()) // Make the field "Vertex of the model" lose the focus