Skip to content

Commit

Permalink
fix kddockwidgets warning
Browse files Browse the repository at this point in the history
fixes: #483
  • Loading branch information
lievenhey committed Jun 1, 2023
1 parent bf9cc72 commit 9cf60b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ int main(int argc, char** argv)
#endif

QApplication* guiApp = qobject_cast<QApplication*>(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")));
}

Expand Down Expand Up @@ -155,8 +157,6 @@ int main(int argc, char** argv)

parser.process(*app);

setupDockWidgets();

ThreadWeaver::Queue::instance()->setMaximumNumberOfThreads(QThread::idealThreadCount());

auto applyCliArgs = [&](Settings* settings) {
Expand Down

0 comments on commit 9cf60b0

Please sign in to comment.