From 5506cf50dba098399bbacb73533603d186d8a91e Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Mon, 25 Jun 2018 15:12:55 -0400 Subject: 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 --- pbap/pbap.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pbap') 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 history_vcards = vCard::fromByteArray(vcards.toUtf8()); for (auto vcard : history_vcards) { -- cgit 1.2.3-korg