]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for '54516: [TC-9.3.0] Local Selection in GEOM doesn't work' issue V9_3_0b1
authorrnv <rnv@opencascade.com>
Thu, 14 Mar 2019 09:45:32 +0000 (12:45 +0300)
committerrnv <rnv@opencascade.com>
Thu, 14 Mar 2019 09:45:32 +0000 (12:45 +0300)
src/OCCViewer/OCCViewer_ViewModel.cxx

index 2c3f55631211992d4102bd4a9afbf41a5821b16f..0e3e37f7368d5139a9cf690bb5c30db2bf05ffbc 100644 (file)
@@ -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();
     }