From 1caa457aaef93eee542c4394d67417dc83f27b90 Mon Sep 17 00:00:00 2001 From: redmanmale Date: Tue, 31 Jan 2017 22:20:02 +0300 Subject: [PATCH] Disable couple of File menu items when it's needed.i Fixes #2620, Closes #2858 --- PowerEditor/src/Notepad_plus.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 3d8328882..dcddd24cd 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -1933,6 +1933,9 @@ void Notepad_plus::checkDocState() enableCommand(IDM_FILE_DELETE, isFileExisting, MENU); enableCommand(IDM_FILE_RENAME, isFileExisting, MENU); + enableCommand(IDM_FILE_OPEN_CMD, isFileExisting, MENU); + enableCommand(IDM_FILE_OPEN_FOLDER, isFileExisting, MENU); + enableCommand(IDM_FILE_RELOAD, isFileExisting, MENU); enableConvertMenuItems(curBuf->getEolFormat()); checkUnicodeMenuItems();