summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 22:17:02 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 22:17:02 +0800
commit2be52462fd597a122f3564736acef1de894f6a02 (patch)
treedfe2c90820e70b74ec15225d9529331ac27949dc /controller.cxx
parent134ebc6d8e7e1cc73f1bffccf4e4dfa01c8ced21 (diff)
Profile creation page is pushed only if logged in
Diffstat (limited to 'controller.cxx')
-rw-r--r--controller.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller.cxx b/controller.cxx
index 9b471d3..b256a3e 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -16,10 +16,10 @@ Controller::Controller(QObject* parent) : QObject{parent}
auto loginView = appWindow->findChild<QObject*>("login");
connect(loginView, SIGNAL(logIn(QString, QString)),
worker, SLOT(logIn(QString, QString)));
+ connect(worker, SIGNAL(logged(rt_user*)), loginView, SLOT(createProfile()));
auto user = engine->singletonInstance<User*>(User::typeId);
- connect(worker, SIGNAL(logged(rt_user*))
- , user, SLOT(update(rt_user*)));
+ connect(worker, SIGNAL(logged(rt_user*)), user, SLOT(update(rt_user*)));
thread.start();
}