From 011f2fcbc61dec367ed8a3fd6ce72d4fced2882c Mon Sep 17 00:00:00 2001 From: donho Date: Tue, 27 Nov 2007 18:15:01 +0000 Subject: [PATCH] [BUG_FIXED] Fix the bug of dynamic menu format. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@76 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 4f4a7e12..8f969ac1 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -4068,7 +4068,6 @@ bool Notepad_plus::fileClose() scnN.nmhdr.idFrom = 0; _pluginsManager.notify(&scnN); - int res; bool isDirty = _pEditView->isCurrentDocDirty(); @@ -4115,9 +4114,10 @@ bool Notepad_plus::fileClose() //updateStatusBar(); //dynamicCheckMenuAndTB(); - setLangStatus(_pEditView->getCurrentDocType()); - checkDocState(); + //setLangStatus(_pEditView->getCurrentDocType()); + //checkDocState(); _linkTriggered = true; + ::SendMessage(_hSelf, NPPM_INTERNAL_DOCSWITCHIN, 0, 0); // Notify plugins that current file is closed scnN.nmhdr.code = NPPN_FILECLOSED; @@ -4433,12 +4433,12 @@ int Notepad_plus::switchEditViewTo(int gid) _pEditView->beSwitched(); _pEditView->getFocus(); - checkDocState(); + //checkDocState(); setTitleWith(_pEditView->getCurrentTitle()); - setLangStatus(_pEditView->getCurrentDocType()); - updateStatusBar(); - dynamicCheckMenuAndTB(); - //printInt(getCurrentView()); + //setLangStatus(_pEditView->getCurrentDocType()); + //updateStatusBar(); + //dynamicCheckMenuAndTB(); + ::SendMessage(_hSelf, NPPM_INTERNAL_DOCSWITCHIN, 0, 0); return oldView; }