]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Verification on zero before disconnect added
authorsln <sln@opencascade.com>
Sun, 18 Feb 2007 13:55:14 +0000 (13:55 +0000)
committersln <sln@opencascade.com>
Sun, 18 Feb 2007 13:55:14 +0000 (13:55 +0000)
src/Qtx/QtxWorkstack.cxx

index 3cf22f41384375b6e1237c40fd8c6f83745555cd..b2e3d8afe6b9714bd67e76cacc29816573c0c2d4 100644 (file)
@@ -2265,7 +2265,8 @@ QtxWorkstackChild::~QtxWorkstackChild()
 
   widget()->removeEventFilter( this );
   widget()->reparent( 0, QPoint( 0, 0 ), false );
-  disconnect( widget(), SIGNAL( destroyed( QObject* ) ), this, SLOT( onDestroyed( QObject* ) ) );
+  if ( widget() )
+    disconnect( widget(), SIGNAL( destroyed( QObject* ) ), this, SLOT( onDestroyed( QObject* ) ) );
 }
 
 /*!