From: nds Date: Mon, 7 Dec 2009 15:07:36 +0000 (+0000) Subject: A temporary integration to avoid exception in PoseidonGUI by closing. It will be... X-Git-Tag: V_5_1_3~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eb62bc242a87d09eaa65a52a5cb8fe88d1f06b54;p=modules%2Fgui.git A temporary integration to avoid exception in PoseidonGUI by closing. It will be corrected during merge with ATLAS. --- diff --git a/src/Qtx/QtxAction.cxx b/src/Qtx/QtxAction.cxx index 9cfc174c3..bae795e9f 100755 --- a/src/Qtx/QtxAction.cxx +++ b/src/Qtx/QtxAction.cxx @@ -149,6 +149,7 @@ bool QtxAction::eventFilter( QObject* o, QEvent* e ) { if ( o && o->isWidgetType() ) { + /* if ( e->type() == QEvent::ActionAdded && ((QActionEvent*)e)->action() == this ) { addedTo( (QWidget*)o ); @@ -161,10 +162,11 @@ bool QtxAction::eventFilter( QObject* o, QEvent* e ) //ActionNotify a( false, (QWidget*)o ); //QApplication::sendEvent( this, &a ); } - /*if ( e->type() == QEvent::ActionAdded && ((QActionEvent*)e)->action() == this ) + */ + if ( e->type() == QEvent::ActionAdded && ((QActionEvent*)e)->action() == this ) QApplication::postEvent( this, new ActionNotify( true, (QWidget*)o ) ); if ( e->type() == QEvent::ActionRemoved && ((QActionEvent*)e)->action() == this ) - QApplication::postEvent( this, new ActionNotify( false, (QWidget*)o ) );*/ + QApplication::postEvent( this, new ActionNotify( false, (QWidget*)o ) ); } return QWidgetAction::eventFilter( o, e ); }