summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--controller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller.cxx b/controller.cxx
index 3b4b4de..9b471d3 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -9,7 +9,7 @@ Controller::Controller(QObject* parent) : QObject{parent}
worker->moveToThread(&thread);
connect(&thread, &QThread::finished, worker, &QObject::deleteLater);
- auto engine = dynamic_cast<QQmlApplicationEngine*>(parent);
+ auto engine = static_cast<QQmlApplicationEngine*>(parent);
auto rootObjects = engine->rootObjects();
auto appWindow = rootObjects[0];