From eb62bc242a87d09eaa65a52a5cb8fe88d1f06b54 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 7 Dec 2009 15:07:36 +0000 Subject: [PATCH] A temporary integration to avoid exception in PoseidonGUI by closing. It will be corrected during merge with ATLAS. --- src/Qtx/QtxAction.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ); } -- 2.39.2