]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Add return to eventFilter() to avoid double-processing of SALOME_Event
authorsmh <smh@opencascade.com>
Tue, 30 Mar 2004 08:14:51 +0000 (08:14 +0000)
committersmh <smh@opencascade.com>
Tue, 30 Mar 2004 08:14:51 +0000 (08:14 +0000)
src/SALOMEGUI/QAD_Desktop.cxx

index 850b327f881c873bf6d40d79e52a6fab06492ee8..478d5a6989933cea6331b6090ba152fa937bc5a4 100644 (file)
@@ -450,13 +450,16 @@ bool QAD_Desktop::eventFilter( QObject* o, QEvent* e )
   }
   else if ( e->type() == QEvent::User + 1 ) { // SALOME_Event has type QEvent::User + 1
     SALOME_Event* aSE = (SALOME_Event*)e;
-    
+    MESSAGE( "QAD_Desktop::eventFilter - SALOME_Event handling - 1 : o = " << o << ", e = " << e);
     // here we do the job...
     for ( int i = 0; i < 100000; i++ ) {
     }
 
+    MESSAGE( "QAD_Desktop::eventFilter - SALOME_Event handling - 2" );
     if ( aSE->getWaitCondition() )
       aSE->getWaitCondition()->wakeAll();
+    MESSAGE( "QAD_Desktop::eventFilter - SALOME_Event handling - 3" );
+    return TRUE;
   }
   return QMainWindow::eventFilter( o, e );
 }