]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for the bug 21922 "WinTC5.1.4: incorrect quit salome"
authorrnv <rnv@opencascade.com>
Fri, 17 Sep 2010 05:29:47 +0000 (05:29 +0000)
committerrnv <rnv@opencascade.com>
Fri, 17 Sep 2010 05:29:47 +0000 (05:29 +0000)
src/GEOMBase/GEOMBase_Helper.cxx

index 908f77f243c3d1c6271e3387f466a3d82908920f..64bdc325f4dcb9f1378f7066fb1b00b21b07875b 100755 (executable)
@@ -95,7 +95,8 @@ GEOMBase_Helper::GEOMBase_Helper( SUIT_Desktop* desktop )
 //================================================================
 GEOMBase_Helper::~GEOMBase_Helper()
 {
-  if ( !SUIT_Session::session()->activeApplication()->desktop() )
+  //rnv: Fix for the "IPAL21922 : WinTC5.1.4: incorrect quit salome"
+  if ( !SUIT_Session::session()->activeApplication() || !SUIT_Session::session()->activeApplication()->desktop() )
     return;
 
   if ( myPreview.size() )