diff --git a/PowerEditor/src/lastRecentFileList.cpp b/PowerEditor/src/lastRecentFileList.cpp index 57a10e4b..a4a91def 100644 --- a/PowerEditor/src/lastRecentFileList.cpp +++ b/PowerEditor/src/lastRecentFileList.cpp @@ -129,7 +129,6 @@ void LastRecentFileList::updateMenu() ::InsertMenu(_hParentMenu, _posBase + 0, MF_BYPOSITION | MF_POPUP, reinterpret_cast(_hMenu), (LPCTSTR)recentFileList.c_str()); ::InsertMenu(_hParentMenu, _posBase + 1, MF_BYPOSITION, static_cast(-1), 0); } - _pAccelerator->updateFullMenu(); } else if (_hasSeparators && _size == 0) //remove separators { @@ -151,6 +150,8 @@ void LastRecentFileList::updateMenu() } } + _pAccelerator->updateFullMenu(); + //Remove all menu items for(int i = 0; i < _size; ++i) {