]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Added checking for visibility of watched widget before setting focus to it.
authorsan <san@opencascade.com>
Fri, 12 Nov 2010 13:28:06 +0000 (13:28 +0000)
committersan <san@opencascade.com>
Fri, 12 Nov 2010 13:28:06 +0000 (13:28 +0000)
src/Qtx/QtxSearchTool.cxx

index e70f6e89c1ca0ff9c973e990efcf20e10f91ee9d..dbb40df12d28f4dc6b9da41b7d0cd707aa8aaf61 100644 (file)
@@ -676,7 +676,7 @@ bool QtxSearchTool::event( QEvent* e )
     if ( ke->key() == Qt::Key_Escape )
       hide();
   }
-  else if ( e->type() == QEvent::Hide && myWatched )
+  else if ( e->type() == QEvent::Hide && myWatched && myWatched->isVisible() )
   {
     myWatched->setFocus();
   }