From 01ec82cd79eeeb31892b2fcaa53e3a6ce526bd16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Tue, 1 Oct 2019 23:19:01 +0800 Subject: Show first history, to be safe --- controller.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controller.cxx') 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 -- cgit v1.2.3