diff options
-rw-r--r-- | qrtclient/ticket.hxx | 2 | ||||
-rw-r--r-- | ticket.cxx | 12 | ||||
-rw-r--r-- | tickethistory.cxx | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/qrtclient/ticket.hxx b/qrtclient/ticket.hxx index d02954b..44f5a08 100644 --- a/qrtclient/ticket.hxx +++ b/qrtclient/ticket.hxx @@ -45,7 +45,7 @@ namespace RTClient { ) const Q_DECL_OVERRIDE; public slots: - void update(rtclient_search_ticket_list* ticketList); + void update(rtclient_search_ticket_list* list); protected: QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE; @@ -42,14 +42,14 @@ namespace RTClient { emit rowCountChanged(); } - void TicketList::update(rtclient_search_ticket_list* ticketList) + void TicketList::update(rtclient_search_ticket_list* list) { - if (ticketList) { - for (size_t i = 0; i < ticketList->length; i++) - addTicket(Ticket{ticketList->tickets[i]}); - rtclient_search_ticket_free(ticketList); + if (list) { + for (size_t i = 0; i < list->length; i++) + addTicket(Ticket{list->tickets[i]}); + rtclient_search_ticket_free(list); + emit updated(); } - emit updated(); } } diff --git a/tickethistory.cxx b/tickethistory.cxx index 4243d7c..80fc478 100644 --- a/tickethistory.cxx +++ b/tickethistory.cxx @@ -83,8 +83,8 @@ namespace RTClient { addTicketHistory (TicketHistory{list->histories[i]}); rtclient_ticket_history_list_free(list); + emit updated(); } - emit updated(); } } |