summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qrtclient/ticket.hxx2
-rw-r--r--ticket.cxx12
-rw-r--r--tickethistory.cxx2
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;
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();
}
}
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();
}
}