Default to show welcome screen if no settings value available.

master
Torsten Paul 2014-09-14 04:00:17 +02:00
parent 78e341cd4c
commit d67b01c7f2
1 changed files with 2 additions and 1 deletions

View File

@ -576,7 +576,8 @@ int gui(vector<string> &inputFiles, const fs::path &original_path, int argc, cha
}
QSettings settings;
if (noInputFiles && settings.value("launcher/showOnStartup").toBool()) {
QVariant showOnStartup = settings.value("launcher/showOnStartup");
if (noInputFiles && (showOnStartup.isNull() || showOnStartup.toBool())) {
LaunchingScreen *launcher = new LaunchingScreen();
int dialogResult = launcher->exec();
if (dialogResult) {