From 88a21c0665e845c12ec33635ffdb843397b5ea41 Mon Sep 17 00:00:00 2001 From: allexzander Date: Wed, 17 Feb 2021 14:30:10 +0200 Subject: [PATCH] Do not add debug build to startup programs. Signed-off-by: allexzander --- src/gui/application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 2de2522bc..2813ae45f 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -493,7 +493,11 @@ void Application::slotownCloudWizardDone(int res) slotCheckConnection(); // If one account is configured: enable autostart +#ifndef QT_DEBUG bool shouldSetAutoStart = (accountMan->accounts().size() == 1); +#else + bool shouldSetAutoStart = false; +#endif #ifdef Q_OS_MAC // Don't auto start when not being 'installed' shouldSetAutoStart = shouldSetAutoStart -- 2.30.2