summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'controller.cxx')
-rw-r--r--controller.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/controller.cxx b/controller.cxx
index 9d77cf4..3b4b4de 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -12,7 +12,9 @@ Controller::Controller(QObject* parent) : QObject{parent}
auto engine = dynamic_cast<QQmlApplicationEngine*>(parent);
auto rootObjects = engine->rootObjects();
auto appWindow = rootObjects[0];
- connect(appWindow, SIGNAL(logIn(QString, QString)),
+
+ auto loginView = appWindow->findChild<QObject*>("login");
+ connect(loginView, SIGNAL(logIn(QString, QString)),
worker, SLOT(logIn(QString, QString)));
auto user = engine->singletonInstance<User*>(User::typeId);