Small fix to contact parsing.
authoreshe <jessehakanen@gmail.com>
Sat, 30 Oct 2010 09:52:14 +0000 (10:52 +0100)
committereshe <jessehakanen@gmail.com>
Sat, 30 Oct 2010 09:52:14 +0000 (10:52 +0100)
debian/changelog
src/common/contactmanager.cpp

index f74211d..16197d6 100644 (file)
@@ -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 <jessehakanen@gmail.com>  Sat, 16 Oct 2010 00:13:03 +0100
+
 jenirok (0.2-11) unstable; urgency=low
 
   * Fixed Finnish Eniro search.
index fc0c62d..dbc8916 100644 (file)
@@ -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;