phoneuis/easydialing/src/easydialingutils.cpp
branchRCL_3
changeset 57 94dc1107e8b2
parent 14 24062c24fe38
--- a/phoneuis/easydialing/src/easydialingutils.cpp	Mon Jun 21 15:39:45 2010 +0300
+++ b/phoneuis/easydialing/src/easydialingutils.cpp	Thu Jul 15 18:38:16 2010 +0300
@@ -80,18 +80,20 @@
             ptr.Append( KNameSeparatorChar );
             ptr.Append( *firstName );
             }        
-        } 
-    
-    // If firstname and last name are missing, duplicate company name into name field.
+        }
+
+    // If firstname and last name are missing, put company name into the first field.
     if ( ptr.Length() == 0 )
         {
         ptr.Append( *companyName );
         }
-    
-    // Append company name using tab as a separator.
-    ptr.Append( KListFieldSeparatorChar );
-    ptr.Append( *companyName );
-    
+    else
+        {
+        // Otherwise add company name into the second field using tab as a separator.
+        ptr.Append( KListFieldSeparatorChar );
+        ptr.Append( *companyName );
+        }
+
     CleanupStack::Pop( string );
     CleanupStack::PopAndDestroy( 3, firstName );
     CleanupStack::PushL( string );