From f00aded5e314593f8ae765913e9bbe1119935fa4 Mon Sep 17 00:00:00 2001 From: ptv Date: Tue, 29 Nov 2005 09:02:34 +0000 Subject: [PATCH] CTH10684 + add disconnect in removeFrom --- src/Qtx/QtxListAction.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Qtx/QtxListAction.cxx b/src/Qtx/QtxListAction.cxx index 8abe2236a..440228a24 100755 --- a/src/Qtx/QtxListAction.cxx +++ b/src/Qtx/QtxListAction.cxx @@ -128,6 +128,8 @@ myRaise( false ) QtxListAction::~QtxListAction() { + if ( myFrame ) + myFrame->myAction = 0; } /*! @@ -301,6 +303,10 @@ bool QtxListAction::removeFrom( QWidget* w ) else if ( w->inherits( "QPopupMenu" ) ) myPopups.remove( w ); +#if QT_VER >= 3 + disconnect( w, SIGNAL( destroyed( QObject* ) ), this, SLOT( onDestroyed( QObject* ) ) ); +#endif + return true; } -- 2.39.2