diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-01 23:19:01 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-01 23:19:01 +0800 |
commit | 01ec82cd79eeeb31892b2fcaa53e3a6ce526bd16 (patch) | |
tree | 7ee6a38bafb83b66961db6a0783613126e82c527 /controller.cxx | |
parent | 379c281c3ce744cd67a45687ef5cc7bea82116ec (diff) |
Show first history, to be safe
Diffstat (limited to 'controller.cxx')
-rw-r--r-- | controller.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller.cxx b/controller.cxx index e7395d3..d096d8e 100644 --- a/controller.cxx +++ b/controller.cxx @@ -79,7 +79,7 @@ Controller::Controller(QObject* parent) connect(client, &Client::gotTicketHistory , [appWindow,this](rtclient_ticket_history_list* list) { - auto history = list->histories[list->length - 1]; + auto history = list->histories[0]; QMetaObject::invokeMethod(appWindow, "ticketHistory" , Q_ARG(QVariant, m_ticketSubject) , Q_ARG(QVariant |