From 4a0e880557f8cf515b93d8828f887292a1a669a2 Mon Sep 17 00:00:00 2001 From: Don HO Date: Sat, 18 Feb 2017 18:41:43 +0100 Subject: [PATCH] Fix the command "Empty recent files list" doesn't restore menu width Closes #2399 --- PowerEditor/src/lastRecentFileList.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {