From df4c591dacfbbc21ad3fce280dad6ab78e56f4cd 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: Fri, 20 Sep 2019 10:00:34 +0800 Subject: Successful login leads to Home instead of Profile Ticket search is done right after login so home can show the tickets. --- controller.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'controller.cxx') diff --git a/controller.cxx b/controller.cxx index 143e313..8e832b7 100644 --- a/controller.cxx +++ b/controller.cxx @@ -19,8 +19,6 @@ Controller::Controller(QObject* parent) : QObject{parent} , client, SLOT(logIn(QString, QString))); connect(client, SIGNAL(loggedIn(QString)) , client, SLOT(userShow(QString))); - connect(client, SIGNAL(userShown(rtclient_user*)) - , onboardingView, SLOT(pushProfile())); connect(onboardingView, SIGNAL(ticketNew(QString, QString)) , client, SLOT(ticketNew(QString, QString))); connect(onboardingView, SIGNAL(ticketSearch(QString)) @@ -42,6 +40,7 @@ Controller::Controller(QObject* parent) : QObject{parent} engine->rootContext()->setContextProperty("taskList", taskList); connect(client, SIGNAL(ticketSearched(rtclient_ticketlist*)) , taskList, SLOT(update(rtclient_ticketlist*))); + connect(taskList, SIGNAL(updated()), onboardingView, SLOT(pushHome())); thread.start(); } -- cgit v1.2.3