]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Modified a method onLoadStudy, added a check for an applications with Null active...
authorsrn <srn@opencascade.com>
Thu, 14 Jul 2005 10:58:31 +0000 (10:58 +0000)
committersrn <srn@opencascade.com>
Thu, 14 Jul 2005 10:58:31 +0000 (10:58 +0000)
src/SalomeApp/SalomeApp_Application.cxx

index 3f1e503ae9cd2aa2a4d0b1ac872d427e567df695..a56a038859998f45446e712c98a105096facd77c 100644 (file)
@@ -547,6 +547,7 @@ void SalomeApp_Application::onLoadDoc()
      for ( QPtrListIterator<SUIT_Application> it( aAppList ); it.current() && !isAlreadyOpen; ++it )
        {
         aApp = it.current();
+        if(!aApp || !aApp->activeStudy()) continue;
         if ( aApp->activeStudy()->studyName() == studyname ) isAlreadyOpen = true;
        }