diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-10-11 16:07:37 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-10-12 12:33:11 +0200 |
commit | b3b9ae6c6fd19b437a5414489a9f38fb310a2843 (patch) | |
tree | fd83787466b01f0481c610475120c2c7cdfe8def /desktop | |
parent | 6b44a8186da2270ef7d120b97380aabc297be76b (diff) |
safemode: Add flag to indicate safemode
Change-Id: Ifdbb291715b033eaace159297eac5348530e9f36
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index a9d10c3a99ba..69da758aac42 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -101,6 +101,7 @@ #include <vcl/settings.hxx> #include <sfx2/sfx.hrc> #include <sfx2/app.hxx> +#include <sfx2/safemode.hxx> #include <svl/itemset.hxx> #include <svl/eitem.hxx> #include <basic/sbstar.hxx> @@ -2138,7 +2139,7 @@ void Desktop::OpenClients() bool bAllowRecoveryAndSessionManagement = ( !rArgs.IsNoRestore() ) && ( !rArgs.IsHeadless() ); // Enter safe mode if requested - if (rArgs.IsSafeMode()) + if (rArgs.IsSafeMode() || sfx2::SafeMode::hasFlag()) handleSafeMode(); |