notepad/notepad1/LibSrc/NpdListDialog.cpp
branchRCL_3
changeset 48 bf573002ff72
parent 36 9c5b1510919f
child 59 aba12c885d83
equal deleted inserted replaced
36:9c5b1510919f 48:bf573002ff72
   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: