From 8b69a44c2f8212ebd2b07bf0d79e8c5b3774c0d3 Mon Sep 17 00:00:00 2001 From: smh Date: Tue, 30 Mar 2004 08:14:51 +0000 Subject: [PATCH] Add return to eventFilter() to avoid double-processing of SALOME_Event --- src/SALOMEGUI/QAD_Desktop.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SALOMEGUI/QAD_Desktop.cxx b/src/SALOMEGUI/QAD_Desktop.cxx index 850b327f8..478d5a698 100644 --- a/src/SALOMEGUI/QAD_Desktop.cxx +++ b/src/SALOMEGUI/QAD_Desktop.cxx @@ -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 ); } -- 2.39.2