From 6dad86c7d4a66bd1e882cd52b5c7c6795d062519 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 10 Nov 2009 05:45:00 +0000 Subject: [PATCH] This modification was got from V5_1_main branch. Without it, using of QtxActionSet leads to exception at the time of the application close. --- src/Qtx/QtxAction.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Qtx/QtxAction.cxx b/src/Qtx/QtxAction.cxx index e6508893c..e4da75af7 100755 --- a/src/Qtx/QtxAction.cxx +++ b/src/Qtx/QtxAction.cxx @@ -150,17 +150,9 @@ bool QtxAction::eventFilter( QObject* o, QEvent* e ) if ( o && o->isWidgetType() ) { if ( e->type() == QEvent::ActionAdded && ((QActionEvent*)e)->action() == this ) - { - addedTo( (QWidget*)o ); - //ActionNotify a( true, (QWidget*)o ); - //QApplication::sendEvent( this, &a ); - } + QApplication::postEvent( this, new ActionNotify( true, (QWidget*)o ) ); if ( e->type() == QEvent::ActionRemoved && ((QActionEvent*)e)->action() == this ) - { - removedFrom( (QWidget*)o ); - //ActionNotify a( false, (QWidget*)o ); - //QApplication::sendEvent( this, &a ); - } + QApplication::postEvent( this, new ActionNotify( false, (QWidget*)o ) ); } return QWidgetAction::eventFilter( o, e ); } -- 2.39.2