From: rnv Date: Thu, 14 Mar 2019 09:45:32 +0000 (+0300) Subject: Fix for '54516: [TC-9.3.0] Local Selection in GEOM doesn't work' issue X-Git-Tag: V9_3_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bdb6f4b1b354b2f67d83a7a46db7aa4be107e40b;p=modules%2Fgui.git Fix for '54516: [TC-9.3.0] Local Selection in GEOM doesn't work' issue --- diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index 2c3f55631..0e3e37f73 100644 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -357,7 +357,7 @@ void OCCViewer_Viewer::onMouseRelease(SUIT_ViewWindow* theWindow, QMouseEvent* t bool aHasShift = (theEvent->modifiers() & Qt::ShiftModifier); if (!aHasShift) { - myAISContext->ClearSelected( false ); + myAISContext->ClearCurrents( false ); emit deselection(); } @@ -418,7 +418,7 @@ void OCCViewer_Viewer::onKeyPress(SUIT_ViewWindow* theWindow, QKeyEvent* theEven switch ( theEvent->key() ) { case Qt::Key_S: if (!aHasShift) { - myAISContext->ClearSelected( false ); + myAISContext->ClearCurrents( false ); emit deselection(); }