summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-01 23:19:01 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-01 23:19:01 +0800
commit01ec82cd79eeeb31892b2fcaa53e3a6ce526bd16 (patch)
tree7ee6a38bafb83b66961db6a0783613126e82c527 /controller.cxx
parent379c281c3ce744cd67a45687ef5cc7bea82116ec (diff)
Show first history, to be safe
Diffstat (limited to 'controller.cxx')
-rw-r--r--controller.cxx2
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