From f61fc9cc5beeb9c5f5dc6c47ac4400f99a3e70e6 Mon Sep 17 00:00:00 2001 From: sln Date: Sun, 18 Feb 2007 13:55:14 +0000 Subject: [PATCH] Verification on zero before disconnect added --- src/Qtx/QtxWorkstack.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index 3cf22f413..b2e3d8afe 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -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* ) ) ); } /*! -- 2.39.2