From d54537d4da89911f9d1bc1bcb0383001de063d14 Mon Sep 17 00:00:00 2001 From: Marcel de Vries Date: Mon, 9 Oct 2023 15:41:09 +0200 Subject: [PATCH 1/2] Pass argc as reference to reinitializeAsQApplication (fixes #3367) --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 163e521fa8..a43a9e666e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -117,7 +117,7 @@ void configureApp(bool gui) // TODO find a way so we don't have to do this /// Recreate the application as a QApplication -void reinitializeAsQApplication(int argc, char* argv[]) +void reinitializeAsQApplication(int &argc, char* argv[]) { delete QCoreApplication::instance(); new QApplication(argc, argv); From 4a72b26264c3a3f37e11d9e390cc07aea5375d96 Mon Sep 17 00:00:00 2001 From: Marcel de Vries Date: Mon, 9 Oct 2023 20:23:05 +0200 Subject: [PATCH 2/2] Formatting --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a43a9e666e..ce06483a26 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -117,7 +117,7 @@ void configureApp(bool gui) // TODO find a way so we don't have to do this /// Recreate the application as a QApplication -void reinitializeAsQApplication(int &argc, char* argv[]) +void reinitializeAsQApplication(int& argc, char* argv[]) { delete QCoreApplication::instance(); new QApplication(argc, argv);