From 39d813f0f63c17c3247f47f59ffbc7c5f12324d0 Mon Sep 17 00:00:00 2001 From: Lieven Hey Date: Wed, 17 May 2023 16:47:48 +0200 Subject: [PATCH] fix kddockwidgets warning fixes: #483 --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c34c3aa5..a23aefb2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -94,8 +94,10 @@ int main(int argc, char** argv) #endif QApplication* guiApp = qobject_cast(app.get()); - auto window = guiApp ? new MainWindow : nullptr; + MainWindow* window = nullptr; if (guiApp) { + setupDockWidgets(); + window = new MainWindow(); guiApp->setWindowIcon(QIcon(QStringLiteral(":/images/icons/512-hotspot_app_icon.png"))); } @@ -155,8 +157,6 @@ int main(int argc, char** argv) parser.process(*app); - setupDockWidgets(); - ThreadWeaver::Queue::instance()->setMaximumNumberOfThreads(QThread::idealThreadCount()); auto applyCliArgs = [&](Settings* settings) {