From 583399ad53f8910579f67453d679942f979b2f98 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 20 Feb 2018 11:03:46 +0100 Subject: [PATCH] Set launch-on-startup when the first account is set up The previous code would disable it when the second account was configured. See #6347 --- src/gui/application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/application.cpp b/src/gui/application.cpp index ada0df2956..8849c527f6 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -365,7 +365,9 @@ void Application::slotownCloudWizardDone(int res) shouldSetAutoStart = shouldSetAutoStart && QCoreApplication::applicationDirPath().startsWith("/Applications/"); #endif - Utility::setLaunchOnStartup(_theme->appName(), _theme->appNameGUI(), shouldSetAutoStart); + if (shouldSetAutoStart) { + Utility::setLaunchOnStartup(_theme->appName(), _theme->appNameGUI(), true); + } _gui->slotShowSettings(); }