diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-20 10:00:34 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-20 10:00:34 +0800 |
commit | df4c591dacfbbc21ad3fce280dad6ab78e56f4cd (patch) | |
tree | 96a05edcf0f1cd8ba483494188ece549f18b9b49 /controller.cxx | |
parent | e3cf9197843998ec919e1dd043eaccf04d122876 (diff) |
Successful login leads to Home instead of Profile
Ticket search is done right after login
so home can show the tickets.
Diffstat (limited to 'controller.cxx')
-rw-r--r-- | controller.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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(); } |