notepad/notepad1/LibSrc/NpdListDialog.cpp
branchRCL_3
changeset 25 bf573002ff72
parent 20 9c5b1510919f
child 27 aba12c885d83
--- a/notepad/notepad1/LibSrc/NpdListDialog.cpp	Wed Jun 09 09:40:23 2010 +0300
+++ b/notepad/notepad1/LibSrc/NpdListDialog.cpp	Mon Jun 21 15:38:59 2010 +0300
@@ -873,9 +873,18 @@
 		{
 		return;
 		}
+	
+    ClearSavedCurrentAndSelections();
+    SaveCurrentAndSelectionsL();
     iModel->SyncL(EFalse);
     CNotepadDialogBase::DynInitMenuPaneL( aResourceId, aMenuPane );
-    const TInt memoCount( iModel->MdcaCount() - KNumberOfFixedItem );
+    
+    TInt memoCount = iModel->MdcaCount();
+    if ( IsNoteListDialog() )
+        {
+        memoCount = memoCount - KNumberOfFixedItem;
+        }
+    
    	const TInt markCount(iListBox->SelectionIndexes()->Count());
 	TInt index;
 	switch (aResourceId )