]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
PAL10696 - crash if press "Shift+C" when there is no viewer
authorasl <asl@opencascade.com>
Thu, 1 Dec 2005 10:00:50 +0000 (10:00 +0000)
committerasl <asl@opencascade.com>
Thu, 1 Dec 2005 10:00:50 +0000 (10:00 +0000)
src/Qtx/QtxWorkstack.cxx

index 72275a837bdb3e4195a14230ee870cb5786e90dc..e9a27a3ad266c5de330f4beebfdc0362b0015028 100644 (file)
@@ -789,7 +789,7 @@ void QtxWorkstack::onCloseWindow()
 {
   if ( myWorkWin )
     myWorkWin->close();
-  else
+  else if( activeWindow() )
     activeWindow()->close();
 }