From: srn Date: Thu, 14 Jul 2005 10:58:31 +0000 (+0000) Subject: Modified a method onLoadStudy, added a check for an applications with Null active... X-Git-Tag: V3_0_1~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5761024ec25a3a1d55144c42ecccc90b96a91d48;p=modules%2Fgui.git Modified a method onLoadStudy, added a check for an applications with Null active study --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 3f1e503ae..a56a03885 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -547,6 +547,7 @@ void SalomeApp_Application::onLoadDoc() for ( QPtrListIterator it( aAppList ); it.current() && !isAlreadyOpen; ++it ) { aApp = it.current(); + if(!aApp || !aApp->activeStudy()) continue; if ( aApp->activeStudy()->studyName() == studyname ) isAlreadyOpen = true; }