Gui: do not show the settings when opening a virtual file
authorOlivier Goffart <ogoffart@woboq.com>
Thu, 29 Nov 2018 12:55:27 +0000 (13:55 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:31 +0000 (10:58 +0100)
Issue #6764

src/gui/main.cpp

index f35c4ef86734bffdc86ae1819daea2f388d531d7..dd030328a7a9cc5740d1e418fd41e775c2e73c90 100644 (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;