From: eshe Date: Wed, 11 Aug 2010 10:53:18 +0000 (+0100) Subject: Small change to name parsing in add to contacts dialog. X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=42490c37aa0b584fd6c664939090e17d1181b879;hp=5b03daed5d035b510b97a440959bffc8d7445967;p=jenirok Small change to name parsing in add to contacts dialog. --- 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);