Gui: do not show the settings when opening a virtual file

Issue #6764
This commit is contained in:
Olivier Goffart 2018-11-29 13:55:27 +01:00 committed by Kevin Ottens
parent c4dfa82661
commit 0e56dfe3a4
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -149,8 +149,7 @@ int main(int argc, char **argv)
QString msg = args.join(QLatin1String("|"));
if (!app.sendMessage(QLatin1String("MSG_PARSEOPTIONS:") + msg))
return -1;
}
if (!app.backgroundMode() && !app.sendMessage(QLatin1String("MSG_SHOWMAINDIALOG"))) {
} else if (!app.backgroundMode() && !app.sendMessage(QLatin1String("MSG_SHOWMAINDIALOG"))) {
return -1;
}
return 0;