Salome HOME
Dialog for delete operation (Bug #300).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ProfileDlg.cxx
index 611e888f23d5589dbecef5ea1ba69e4f91fc435b..499e5ec74d4f589de2ba21498d30da8c49ecfe0e 100644 (file)
@@ -215,9 +215,12 @@ void HYDROGUI_ProfileDlg::onMouseMove( SUIT_ViewWindow* theViewWindow, QMouseEve
 
 bool HYDROGUI_ProfileDlg::eventFilter( QObject* theObj, QEvent* theEvent )
 {
-  if ( theObj->inherits( "OCCViewer_ViewPort" ) && 
-       theEvent->type() == QEvent::Leave ) {
-    myCoordLabel->clear();
+  if ( theObj->inherits( "OCCViewer_ViewPort" ) )
+  {
+    if ( theEvent->type() == QEvent::Leave )
+      myCoordLabel->clear();
+
+    return false;
   }
 
   return HYDROGUI_InputPanel::eventFilter( theObj, theEvent );