diff options
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 |