diff options
author | Matt Porter <mporter@konsulko.com> | 2018-06-25 15:12:55 -0400 |
---|---|---|
committer | Matt Porter <mporter@konsulko.com> | 2018-06-25 15:17:30 -0400 |
commit | 5506cf50dba098399bbacb73533603d186d8a91e (patch) | |
tree | 443ddbacae8d553a78f6d9869dd46f8eb23e13e3 /pbap | |
parent | 389b5994553fdae59d484068d542910efee79e9c (diff) |
pbap: clear the recent call list before updating
The recent call list was being appended rather than
reinitialized from the new data. Always clear the
list before an update.
Bug-AGL: SPEC-1436
Change-Id: I8062606ab84fca75bdc70a68e41b7890fdf8a150
Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'pbap')
-rw-r--r-- | pbap/pbap.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pbap/pbap.cpp b/pbap/pbap.cpp index 43db8bd..ad3eec7 100644 --- a/pbap/pbap.cpp +++ b/pbap/pbap.cpp @@ -175,6 +175,8 @@ void Pbap::updateCalls(QString vcards) { QString name, number, datetime, type; + m_calls.clear(); + QList<vCard> history_vcards = vCard::fromByteArray(vcards.toUtf8()); for (auto vcard : history_vcards) { |