1653 || aAction == ESendMessageCurrentContact |
1653 || aAction == ESendMessageCurrentContact |
1654 || aAction == ELaunchCurrentContact ) |
1654 || aAction == ELaunchCurrentContact ) |
1655 { |
1655 { |
1656 // Need to save current contact link and name. Listbox current item |
1656 // Need to save current contact link and name. Listbox current item |
1657 // index might not be correct when callback is handled. |
1657 // index might not be correct when callback is handled. |
1658 iContactToBeLaunched = iContactListBox->CurrentContactLinkLC(); |
1658 TRAPD( err, iContactToBeLaunched = iContactListBox->CurrentContactLinkL() ); |
1659 CleanupStack::Pop( iContactToBeLaunched ); |
1659 if ( err || !iContactToBeLaunched ) |
|
1660 { |
|
1661 // Can't find contact for the action - probably because listbox |
|
1662 // has lost the selection somehow. This shouldn't happen, but if it does |
|
1663 // return without trying to launch any action. |
|
1664 return; |
|
1665 } |
1660 |
1666 |
1661 TPtrC contactString( iListBoxModel->MdcaPoint( iContactListBox->CurrentItemIndex() ) ); |
1667 TPtrC contactString( iListBoxModel->MdcaPoint( iContactListBox->CurrentItemIndex() ) ); |
1662 TPtrC fullNameSeparators; |
1668 TPtrC fullNameSeparators; |
1663 TInt error = TextUtils::ColumnText( fullNameSeparators, 1, &contactString ); |
1669 TInt error = TextUtils::ColumnText( fullNameSeparators, 1, &contactString ); |
1664 __ASSERT_DEBUG( error == KErrNone, EasyDialingPanic( EEasyDialingPanicInvalidListBoxModelString ) ); |
1670 __ASSERT_DEBUG( error == KErrNone, EasyDialingPanic( EEasyDialingPanicInvalidListBoxModelString ) ); |