summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'controller.cxx')
-rw-r--r--controller.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/controller.cxx b/controller.cxx
index 43e7652..1b0e9f3 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -63,8 +63,12 @@ Controller::Controller(QObject* parent) : QObject{parent}
connect(client, &Client::ticketSearched, taskList, &TicketList::update);
- connect(taskList, &TicketList::updated, [appWindow]() {
- QMetaObject::invokeMethod(appWindow, "pushHome");
+ connect(client, &Client::loggedIn, [appWindow,this]() {
+ auto loginView = appWindow->findChild<QObject*>("login");
+ connect(taskList, &TicketList::updated, [loginView]() {
+ QMetaObject::invokeMethod(loginView
+ , "pushHome");
+ });
});
connect(appWindow, SIGNAL(ticketHistory(int))