From 5d4551325d1c7b4157dad1ee523a93f6a5e4f6d0 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 6 Sep 2020 19:13:53 +0200 Subject: [PATCH] Allow gvedit -? to show usage even if there's no DISPLAY Parse gvedit args before starting app and trying to open DISPLAY. This allows testing that gvedit can start in CI. --- cmd/gvedit/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gvedit/main.cpp b/cmd/gvedit/main.cpp index 76a0ed643..979111f5f 100644 --- a/cmd/gvedit/main.cpp +++ b/cmd/gvedit/main.cpp @@ -89,8 +89,8 @@ int main(int argc, char *argv[]) Q_INIT_RESOURCE(mdi); int ret; - QApplication app(argc, argv); char **files = parseArgs(argc, argv); + QApplication app(argc, argv); CMainWindow mainWin(&files); mainWin.show(); ret = app.exec(); -- 2.40.0