diff options
Diffstat (limited to 'controller.cxx')
-rw-r--r-- | controller.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/controller.cxx b/controller.cxx index 040d163..e50dc38 100644 --- a/controller.cxx +++ b/controller.cxx @@ -56,10 +56,12 @@ Controller::Controller(QObject* parent) , client, static_cast<void (Client::*)(QString const&)> (&Client::userShow)); - connect(client, &Client::userShown, [this,qUser](rtclient_user* user) { + connect(client, &Client::userShown + , [this,qUser,appWindow](rtclient_user* user) { if (user) { emit checked(QString{user->name}); qUser->update(user); + QMetaObject::invokeMethod(appWindow, "pushHome"); } }); @@ -67,10 +69,6 @@ Controller::Controller(QObject* parent) connect(client, &Client::searchedTicket, ticketList, &TicketList::update); - connect(ticketList, &TicketList::updated, [appWindow]() { - QMetaObject::invokeMethod(appWindow, "pushHome"); - }); - connect(appWindow, SIGNAL(ticketHistory(int, bool)) , client, SLOT(ticketHistory(int, bool))); |