equal
deleted
inserted
replaced
586 { |
586 { |
587 FUNC_LOG; |
587 FUNC_LOG; |
588 // First, add all the addresses without updating the editor text contents |
588 // First, add all the addresses without updating the editor text contents |
589 for ( TInt i=0 ; i<aAddresses.Count() ; i++ ) |
589 for ( TInt i=0 ; i<aAddresses.Count() ; i++ ) |
590 { |
590 { |
591 AddAddressL( *aAddresses[i], EFalse ); |
591 AddAddressL( *aAddresses[i], ETrue ); |
592 } |
592 } |
593 // Update editor text content after all the items have been added |
593 // Update editor text content after all the items have been added |
594 RepositionEntriesL( NULL ); |
594 RepositionEntriesL( NULL ); |
595 } |
595 } |
596 |
596 |
886 // Find the location where we need to insert the address. |
886 // Find the location where we need to insert the address. |
887 // Browse from back to forth to make last index as default index. |
887 // Browse from back to forth to make last index as default index. |
888 // This ensures items remain in correct order when populating field from |
888 // This ensures items remain in correct order when populating field from |
889 // existing message. |
889 // existing message. |
890 TInt cursorPos = CursorPos(); |
890 TInt cursorPos = CursorPos(); |
891 |
|
892 // if we are at the end of editor the address was |
891 // if we are at the end of editor the address was |
893 // added from MRU list or separator was typed in |
892 // added from MRU list or separator was typed in |
894 if ( cursorPos == Text()->DocumentLength() ) |
893 if ( cursorPos == Text()->DocumentLength() ) |
895 { |
894 { |
896 iAddLeftover = EFalse; |
895 iAddLeftover = EFalse; |