From: ptv Date: Tue, 29 Nov 2005 09:02:34 +0000 (+0000) Subject: CTH10684 + add disconnect in removeFrom X-Git-Tag: BR_3_1_0_deb~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f00aded5e314593f8ae765913e9bbe1119935fa4;p=modules%2Fgui.git CTH10684 + add disconnect in removeFrom --- 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; }