Salome HOME
Workaround for the problem that the local selection may be initialized without openin...
[modules/gui.git] / src / OCCViewer / OCCViewer_ViewWindow.cxx
index a4bce4220b4e3d0040794c9f2ae7b8446b4b8331..b7d38eab49be69f63253aab47394ac671d7f5760 100644 (file)
@@ -393,7 +393,7 @@ bool OCCViewer_ViewWindow::eventFilter( QObject* watched, QEvent* e )
 
         if ( aEvent->modifiers().testFlag(Qt::ControlModifier) ) {
           Handle(AIS_InteractiveContext) ic = myModel->getAISContext();
-          if ( isPreselectionEnabled() && ic->HasOpenedContext() ) {
+          if ( isPreselectionEnabled() && myModel->useLocalSelection() ) {
             if ( aEvent->delta() > 0 ) {
               ic->HilightNextDetected( myViewPort->getView() );
             } else {