Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Jenirok
Summary Tracker SCM Files
authoreshe <jessehakanen@gmail.com>
Wed, 11 Aug 2010 10:53:18 +0000 (11:53 +0100)
committereshe <jessehakanen@gmail.com>
Wed, 11 Aug 2010 10:53:18 +0000 (11:53 +0100)
src/common/contactmanager.cpp

index bb8c675..caf360c 100644 (file)
@@ -123,14 +123,16 @@ void ContactManager::stringToName(QString const& strname, ContactManager::Name&
 
     if(ename)
     {
-        name.firstname = QString(ename->given);
-        name.surname = QString(ename->family);
-
         QString additional = QString(ename->additional);
 
-        if(!additional.isEmpty())
+        if(additional.isEmpty())
+        {
+            name.firstname = QString(ename->given);
+            name.surname = QString(ename->family);
+        }
+        else
         {
-            name.firstname += " " + additional;
+            name.surname = strname;
         }
 
         e_contact_name_free(ename);

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment