]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
CTH10684 + add disconnect in removeFrom
authorptv <ptv@opencascade.com>
Tue, 29 Nov 2005 09:02:34 +0000 (09:02 +0000)
committerptv <ptv@opencascade.com>
Tue, 29 Nov 2005 09:02:34 +0000 (09:02 +0000)
src/Qtx/QtxListAction.cxx

index 8abe2236ad3088e538a7a04a2cba3aaf5963a3f4..440228a24ce3293d9a2f46700050aaa4f7fe112e 100755 (executable)
@@ -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;
 }