From: asl Date: Thu, 1 Dec 2005 10:00:50 +0000 (+0000) Subject: PAL10696 - crash if press "Shift+C" when there is no viewer X-Git-Tag: BR_3_1_0_deb~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b5c779e70a12a777e2f167e20a1cecca7a6d1e5f;p=modules%2Fgui.git PAL10696 - crash if press "Shift+C" when there is no viewer --- diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index 72275a837..e9a27a3ad 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -789,7 +789,7 @@ void QtxWorkstack::onCloseWindow() { if ( myWorkWin ) myWorkWin->close(); - else + else if( activeWindow() ) activeWindow()->close(); }