From 2be52462fd597a122f3564736acef1de894f6a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Thu, 12 Sep 2019 22:17:02 +0800 Subject: Profile creation page is pushed only if logged in --- controller.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'controller.cxx') 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("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::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(); } -- cgit v1.2.3