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 | |
parent | 379c281c3ce744cd67a45687ef5cc7bea82116ec (diff) |
Show first history, to be safe
-rw-r--r-- | controller.cxx | 2 | ||||
m--------- | qrtclient | 0 |
2 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 diff --git a/qrtclient b/qrtclient -Subproject 132781266018bcf28e8fdb31a58f1156a6058e9 +Subproject 0fe9af92f5fdea473e258da3cb079a525e9fbcf |