From b0f843d8abeabfe4f9299480f9eeb9cf6ca412a6 Mon Sep 17 00:00:00 2001 From: eshe Date: Sat, 30 Oct 2010 10:52:14 +0100 Subject: [PATCH] Small fix to contact parsing. --- debian/changelog | 7 +++++++ src/common/contactmanager.cpp | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index f74211d..16197d6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +jenirok (0.2-12) unstable; urgency=low + + * Fixed one small issue with adding contact to address book. + * Changed daemon to automatically remove added zero if call is coming through a switchbox. + + -- Jesse Hakanen Sat, 16 Oct 2010 00:13:03 +0100 + jenirok (0.2-11) unstable; urgency=low * Fixed Finnish Eniro search. diff --git a/src/common/contactmanager.cpp b/src/common/contactmanager.cpp index fc0c62d..dbc8916 100644 --- a/src/common/contactmanager.cpp +++ b/src/common/contactmanager.cpp @@ -130,7 +130,7 @@ void ContactManager::stringToName(QString const& strname, ContactManager::Name& QString firstname = QString::fromUtf8(ename->given); QString surname = QString::fromUtf8(ename->family); - if(additional.isEmpty() && check.indexIn(firstname, 1) == -1 && check.indexIn(surname, 1) == -1) + if(additional.isEmpty() && check.indexIn(firstname, 1) == -1 && check.indexIn(surname, 1) == -1 && firstname != surname) { name.firstname = firstname; name.surname = surname; -- 1.7.9.5