summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-10-19 15:25:08 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-10-20 09:55:16 +0000
commit277b55131319d483c2f855c82c4585dfa15e8c3f (patch)
treee27a19f4a11d6cc4753ad68cf000d84493ff900e /desktop
parent85b5ef2809dfea18cdad4700f7a46e864c70726c (diff)
Use Application::IsSafeModeEnabled()
Change-Id: I8ca8ceae76b6479a848a618ed141ce29a9c2d84e Reviewed-on: https://gerrit.libreoffice.org/30077 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/app.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 6b29f92fd4eb..c3bd15ce361f 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -558,12 +558,9 @@ void Desktop::Init()
// When we are in SafeMode we need to do changes before the configuration
// gets read (langselect::prepareLocale() by UNO API -> Components::Components)
- const CommandLineArgs& rArgs = GetCommandLineArgs();
- const bool bSafeMode(rArgs.IsSafeMode() || sfx2::SafeMode::hasFlag());
-
- // this may prepare SafeMode or restore from it by moving data in
+ // This may prepare SafeMode or restore from it by moving data in
// the UserConfiguration directory
- comphelper::BackupFileHelper::reactOnSafeMode(bSafeMode);
+ comphelper::BackupFileHelper::reactOnSafeMode(Application::IsSafeModeEnabled());
if ( m_aBootstrapError == BE_OK )
{