Fix for the bug 21922 "WinTC5.1.4: incorrect quit salome"

This commit is contained in:
rnv 2010-09-17 05:29:47 +00:00
parent dc53fa88bf
commit 9188609436

View File

@ -95,7 +95,8 @@ GEOMBase_Helper::GEOMBase_Helper( SUIT_Desktop* desktop )
//================================================================ //================================================================
GEOMBase_Helper::~GEOMBase_Helper() 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; return;
if ( myPreview.size() ) if ( myPreview.size() )