From: Magnus Jacobsson Date: Sun, 6 Sep 2020 17:13:53 +0000 (+0200) Subject: Allow gvedit -? to show usage even if there's no DISPLAY X-Git-Tag: 2.46.0~20^2^2~88^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d4551325d1c7b4157dad1ee523a93f6a5e4f6d0;p=graphviz 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. --- 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();