diff options
Diffstat (limited to 'pbap/pbap.cpp')
-rw-r--r-- | pbap/pbap.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pbap/pbap.cpp b/pbap/pbap.cpp index f92139b..a3bde48 100644 --- a/pbap/pbap.cpp +++ b/pbap/pbap.cpp @@ -234,9 +234,10 @@ void Pbap::updateCalls(QJsonArray vcards) name = number; } - type = entry.value("type").toString(); - datetime = entry.value("timestamp").toString(); + QStringList typelist = entry.value("type").toString().split(QRegExp("=")); + type = typelist.takeLast(); + datetime = entry.value("timestamp").toString(); // Convert the PBAP date/time to ISO 8601 format datetime.insert(4, '-'); datetime.insert(7, '-'); |