summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2008-11-20 15:13:11 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2008-11-20 15:13:11 +0000
commit21a4a0827e185c8195f989470e04c2b6756d4a18 (patch)
tree06146f65ff58ee653d351094f02cec8f4ef87222 /framework
parent9fc97737a2ccc06fe075234396e41269acfbad07 (diff)
CWS-TOOLING: integrate CWS buildid301_DEV300
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/autorecovery.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index b63ae9cecf8a..93a9f215c079 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -2968,6 +2968,14 @@ void AutoRecovery::implts_doSessionSave(const DispatchParams& aParams)
{
LOG_RECOVERY("AutoRecovery::implts_doSessionSave()")
+ // try to make sure next time office will be started user wont be
+ // notified about any other might be running office instance
+ // remove ".lock" file from disc !
+ // it is done as a first action for session save since Gnome sessions
+ // do not provide enough time for shutdown, and the dialog looks to be
+ // confusing for the user
+ AutoRecovery::st_impl_removeLockFile();
+
// Be sure to know all open documents realy .-)
implts_verifyCacheAgainstDesktopDocumentList();
@@ -3010,11 +3018,6 @@ void AutoRecovery::implts_doSessionSave(const DispatchParams& aParams)
// flush config cached back to disc.
impl_flushALLConfigChanges();
-
- // try to make sure next time office will be started user wont be
- // notified about any other might be running office instance
- // remove ".lock" file from disc !
- AutoRecovery::st_impl_removeLockFile();
}
//-----------------------------------------------