logsui/logsengine/src/logsevent.cpp
changeset 10 b04270301d3b
parent 6 41c0a814d878
child 15 76d2cf7a585e
--- a/logsui/logsengine/src/logsevent.cpp	Fri Jun 11 13:38:41 2010 +0300
+++ b/logsui/logsengine/src/logsevent.cpp	Wed Jun 23 18:13:05 2010 +0300
@@ -642,18 +642,11 @@
 {
     QString firstName = name.value(QContactName::FieldFirstName);
     QString lastName = name.value(QContactName::FieldLastName);
-    QString parsedName;
-    if (!lastName.isEmpty()) {
-        if (!firstName.isEmpty()) {
-            parsedName = 
-                QString(QLatin1String("%1 %2")).arg(firstName).arg(lastName);
-        } 
-        else {
-            parsedName = lastName;
-        }
-    } else if (!firstName.isEmpty()) {
-        parsedName = firstName;
+    QString parsedName = firstName;    
+    if (!parsedName.isEmpty() && !lastName.isEmpty()) {
+        parsedName.append(" ");
     }
+    parsedName.append(lastName);
     return parsedName;
 }