From a5e832effeba7f416a2870380f21338fac7a7f99 Mon Sep 17 00:00:00 2001 From: sln Date: Tue, 20 Nov 2007 10:55:29 +0000 Subject: [PATCH] savePreferences(); method is called after study->closeDocument(); method call because closeDocument method can influence on visibility of tool bar(CTH17800) --- src/STD/STD_Application.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index 6c2566319..ae864f3e0 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -92,8 +92,8 @@ void STD_Application::start() */ void STD_Application::closeApplication() { - if ( desktop() ) - savePreferences(); + /*if ( desktop() ) + savePreferences();*/ SUIT_Study* study = activeStudy(); if ( study ){ @@ -103,6 +103,9 @@ void STD_Application::closeApplication() delete study; } + if ( desktop() ) + savePreferences(); + setDesktop( 0 ); SUIT_Application::closeApplication(); -- 2.39.2