From 0e56dfe3a4cd37acedf394d82c09ed08389bc44d Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 29 Nov 2018 13:55:27 +0100 Subject: [PATCH] Gui: do not show the settings when opening a virtual file Issue #6764 --- src/gui/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index f35c4ef86..dd030328a 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -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; -- 2.30.2