Do not add debug build to startup programs.
authorallexzander <blackslayer4@gmail.com>
Wed, 17 Feb 2021 12:30:10 +0000 (14:30 +0200)
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>
Thu, 18 Feb 2021 13:19:06 +0000 (13:19 +0000)
Signed-off-by: allexzander <blackslayer4@gmail.com>
src/gui/application.cpp

index 2de2522bcb639e48e33253251b7d8b3a165d5548..2813ae45fe707d5507c724e751787dc70fd57677 100644 (file)
@@ -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