projects
/
jenirok
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5b03dae
)
Small change to name parsing in add to contacts dialog.
author
eshe
<jessehakanen@gmail.com>
Wed, 11 Aug 2010 10:53:18 +0000
(11:53 +0100)
committer
eshe
<jessehakanen@gmail.com>
Wed, 11 Aug 2010 10:53:18 +0000
(11:53 +0100)
src/common/contactmanager.cpp
patch
|
blob
|
history
diff --git
a/src/common/contactmanager.cpp
b/src/common/contactmanager.cpp
index
bb8c675
..
caf360c
100644
(file)
--- a/
src/common/contactmanager.cpp
+++ b/
src/common/contactmanager.cpp
@@
-123,14
+123,16
@@
void ContactManager::stringToName(QString const& strname, ContactManager::Name&
if(ename)
{
if(ename)
{
- name.firstname = QString(ename->given);
- name.surname = QString(ename->family);
-
QString additional = QString(ename->additional);
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);
}
e_contact_name_free(ename);