diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-07 10:29:33 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-07 10:29:33 +0800 |
commit | 93d62098aef7f4e1c80fd9edaf7730591e102cbd (patch) | |
tree | d4ac025054809dc54a70a40627f5927ae9503973 /ticket.cxx | |
parent | 2b0fe738ee037f5b1c78ddfea8efc1a2681e68c1 (diff) | |
parent | 0cf274af73740a4ee48f18a66a63b6cc8355c9ab (diff) |
Merge branch 'master' into cmake
Diffstat (limited to 'ticket.cxx')
-rw-r--r-- | ticket.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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(); } } |