|
|
@ -237,6 +237,8 @@ int main(int argc, char *argv[]) |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
if (!firstTimeUser) { |
|
|
|
if (!firstTimeUser) { |
|
|
|
|
|
|
|
handleChangedDefaults(DefaultPreferencesMode::Legacy); |
|
|
|
|
|
|
|
|
|
|
|
#ifndef DISABLE_GUI |
|
|
|
#ifndef DISABLE_GUI |
|
|
|
if (!upgrade()) return EXIT_FAILURE; |
|
|
|
if (!upgrade()) return EXIT_FAILURE; |
|
|
|
#elif defined(Q_OS_WIN) |
|
|
|
#elif defined(Q_OS_WIN) |
|
|
@ -248,6 +250,10 @@ int main(int argc, char *argv[]) |
|
|
|
&& isatty(fileno(stdout)))) return EXIT_FAILURE; |
|
|
|
&& isatty(fileno(stdout)))) return EXIT_FAILURE; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
handleChangedDefaults(DefaultPreferencesMode::Current); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#if defined(DISABLE_GUI) && !defined(Q_OS_WIN) |
|
|
|
#if defined(DISABLE_GUI) && !defined(Q_OS_WIN) |
|
|
|
if (params.shouldDaemonize) { |
|
|
|
if (params.shouldDaemonize) { |
|
|
|
app.reset(); // Destroy current application
|
|
|
|
app.reset(); // Destroy current application
|
|
|
|