equal
deleted
inserted
replaced
871 __ASSERT_DEBUG( iModel, Panic(ENotepadLibraryPanicNoModel) ); |
871 __ASSERT_DEBUG( iModel, Panic(ENotepadLibraryPanicNoModel) ); |
872 if ( iServiceHandler->HandleSubmenuL( *aMenuPane ) ) |
872 if ( iServiceHandler->HandleSubmenuL( *aMenuPane ) ) |
873 { |
873 { |
874 return; |
874 return; |
875 } |
875 } |
|
876 |
|
877 ClearSavedCurrentAndSelections(); |
|
878 SaveCurrentAndSelectionsL(); |
876 iModel->SyncL(EFalse); |
879 iModel->SyncL(EFalse); |
877 CNotepadDialogBase::DynInitMenuPaneL( aResourceId, aMenuPane ); |
880 CNotepadDialogBase::DynInitMenuPaneL( aResourceId, aMenuPane ); |
878 const TInt memoCount( iModel->MdcaCount() - KNumberOfFixedItem ); |
881 |
|
882 TInt memoCount = iModel->MdcaCount(); |
|
883 if ( IsNoteListDialog() ) |
|
884 { |
|
885 memoCount = memoCount - KNumberOfFixedItem; |
|
886 } |
|
887 |
879 const TInt markCount(iListBox->SelectionIndexes()->Count()); |
888 const TInt markCount(iListBox->SelectionIndexes()->Count()); |
880 TInt index; |
889 TInt index; |
881 switch (aResourceId ) |
890 switch (aResourceId ) |
882 { |
891 { |
883 case R_SENDUI_MENU: |
892 case R_SENDUI_MENU: |