summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'controller.cxx')
-rw-r--r--controller.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/controller.cxx b/controller.cxx
index d77abfa..c9403dd 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -17,7 +17,9 @@ Controller::Controller(QObject* parent) : QObject{parent}
auto loginView = appWindow->findChild<QObject*>("login");
connect(loginView, SIGNAL(logIn(QString, QString))
, client, SLOT(logIn(QString, QString)));
- connect(client, SIGNAL(logged(rtclient_user*))
+ connect(client, SIGNAL(loggedIn(QString))
+ , client, SLOT(userShow(QString)));
+ connect(client, SIGNAL(userShown(rtclient_user*))
, loginView, SLOT(pushProfile()));
connect(loginView, SIGNAL(ticketNew(QString, QString))
, client, SLOT(ticketNew(QString, QString)));
@@ -33,7 +35,7 @@ Controller::Controller(QObject* parent) : QObject{parent}
return new User;
});
auto user = engine->singletonInstance<User*>(typeId);
- connect(client, SIGNAL(logged(rtclient_user*))
+ connect(client, SIGNAL(userShown(rtclient_user*))
, user, SLOT(update(rtclient_user*)));
taskList = new RTClient::TicketList;