From a9c09339cfcc3f26f24331afe2b555ba00e94005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Fri, 12 Oct 2018 12:49:29 +0200 Subject: [PATCH] Fix Command Line Args when skipping InitialOptionsDialog --- src/MainWindow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index b698ed4e..f80620c7 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -370,13 +370,11 @@ void MainWindow::displayInitialOptionsDialog(const InitialOptions &options, bool { auto o = new InitialOptionsDialog(this); o->setAttribute(Qt::WA_DeleteOnClose); + o->loadOptions(options); if (skipOptionsDialog) { o->setupAndStartAnalysis(); - } - else - { - o->loadOptions(options); + } else { o->show(); } }