]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0022811: EDF 9266 PARAVIS: PVViewer is broken after connecting a study while Paravis...
authorvsr <vsr@opencascade.com>
Tue, 2 Dec 2014 17:24:38 +0000 (20:24 +0300)
committervsr <vsr@opencascade.com>
Tue, 2 Dec 2014 17:24:38 +0000 (20:24 +0300)
src/STD/STD_Application.cxx

index 51354196a3206ef9b134cf0a9dca08ab68e1e18e..47b4eaa2e5001c86a379194e3e02c016c007ce55 100755 (executable)
@@ -409,6 +409,8 @@ bool STD_Application::closeDoc( bool ask )
 bool STD_Application::closeActiveDoc( bool permanently )
 {
   SUIT_Study* study = activeStudy();
+  if ( !study ) // no active study
+    return true;
 
   beforeCloseDoc( study );