From 42490c37aa0b584fd6c664939090e17d1181b879 Mon Sep 17 00:00:00 2001 From: eshe Date: Wed, 11 Aug 2010 11:53:18 +0100 Subject: [PATCH] Small change to name parsing in add to contacts dialog. --- src/common/contactmanager.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/common/contactmanager.cpp b/src/common/contactmanager.cpp index bb8c675..caf360c 100644 --- a/src/common/contactmanager.cpp +++ b/src/common/contactmanager.cpp @@ -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); -- 1.7.9.5