summaryrefslogtreecommitdiff
path: root/ticket.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-07 10:29:33 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-07 10:29:33 +0800
commit93d62098aef7f4e1c80fd9edaf7730591e102cbd (patch)
treed4ac025054809dc54a70a40627f5927ae9503973 /ticket.cxx
parent2b0fe738ee037f5b1c78ddfea8efc1a2681e68c1 (diff)
parent0cf274af73740a4ee48f18a66a63b6cc8355c9ab (diff)
Merge branch 'master' into cmake
Diffstat (limited to 'ticket.cxx')
-rw-r--r--ticket.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/ticket.cxx b/ticket.cxx
index 4693225..7b21bc8 100644
--- a/ticket.cxx
+++ b/ticket.cxx
@@ -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();
}
}