diff options
Diffstat (limited to 'controller.cxx')
-rw-r--r-- | controller.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/controller.cxx b/controller.cxx index 1d5bb4b..040d163 100644 --- a/controller.cxx +++ b/controller.cxx @@ -67,12 +67,8 @@ Controller::Controller(QObject* parent) connect(client, &Client::searchedTicket, ticketList, &TicketList::update); - connect(client, &Client::loggedIn, [appWindow,this]() { - auto loginView = appWindow->findChild<QObject*>("login"); - connect(ticketList, &TicketList::updated, [loginView]() { - QMetaObject::invokeMethod(loginView - , "pushHome"); - }); + connect(ticketList, &TicketList::updated, [appWindow]() { + QMetaObject::invokeMethod(appWindow, "pushHome"); }); connect(appWindow, SIGNAL(ticketHistory(int, bool)) |