From: eshe Date: Sat, 30 Oct 2010 09:52:14 +0000 (+0100) Subject: Small fix to contact parsing. X-Git-Url: http://git.maemo.org/git/?p=jenirok;a=commitdiff_plain;h=b0f843d8abeabfe4f9299480f9eeb9cf6ca412a6;hp=e0066d3ae2ecc7b1df879f1a94be3767cdbd3722;ds=sidebyside Small fix to contact parsing. --- 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;