425 { |
425 { |
426 ClearSavedCurrentAndSelections(); |
426 ClearSavedCurrentAndSelections(); |
427 SaveCurrentAndSelectionsL(); |
427 SaveCurrentAndSelectionsL(); |
428 TUid serviceUid = SendByKeysL(*iSendUi, aCommandId, *iModel, iSavedSelectedKeys); |
428 TUid serviceUid = SendByKeysL(*iSendUi, aCommandId, *iModel, iSavedSelectedKeys); |
429 iModel->SyncL(EFalse); // sync might be delayed while SendAsL. |
429 iModel->SyncL(EFalse); // sync might be delayed while SendAsL. |
430 RestoreCurrentAndSelectionsL(); |
|
431 //RestoreCurrent(); |
|
432 TUid EmailUid = {0x10001028}; |
430 TUid EmailUid = {0x10001028}; |
433 if ( serviceUid == EmailUid ) |
431 if ( serviceUid == EmailUid ) |
434 { |
432 { |
435 iSendingEmail = ETrue; |
433 iSendingEmail = ETrue; |
436 } |
434 } |
437 |
|
438 } |
435 } |
439 else |
436 else |
440 { |
437 { |
441 HBufC* text = iModel->ContentL(iListBox->CurrentItemIndex()); |
438 HBufC* text = iModel->ContentL(iListBox->CurrentItemIndex()); |
442 CleanupStack::PushL(text); |
439 CleanupStack::PushL(text); |
443 iSavedKey = iModel->Key(iListBox->CurrentItemIndex()); |
440 iSavedKey = iModel->Key(iListBox->CurrentItemIndex()); |
444 SendAsL( *iSendUi, aCommandId, EFalse, text ); |
441 SendAsL( *iSendUi, aCommandId, EFalse, text ); |
445 CleanupStack::PopAndDestroy(); // text |
442 CleanupStack::PopAndDestroy(); // text |
446 iModel->SyncL(EFalse); // sync might be delayed while SendAsL. |
443 iModel->SyncL(EFalse); // sync might be delayed while SendAsL. |
447 RestoreCurrentAndSelectionsL(); |
|
448 } |
444 } |
449 } |
445 } |
450 |
446 |
451 // ----------------------------------------------------------------------------- |
447 // ----------------------------------------------------------------------------- |
452 // CNotepadListDialog::CreateProgressDialogL |
448 // CNotepadListDialog::CreateProgressDialogL |