From f477c095aa6ec219edf44fc51b293b8d478c8cab Mon Sep 17 00:00:00 2001 From: Scott Sumner <30118311+sasumner@users.noreply.github.com> Date: Tue, 17 Sep 2019 16:14:10 -0400 Subject: [PATCH] Remove association check before enabling 'View Current File In' menu items Fix #5903, close #6156 --- PowerEditor/src/Notepad_plus.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 4c8aa942..e4e99c17 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -2005,10 +2005,10 @@ void Notepad_plus::checkDocState() enableCommand(IDM_FILE_OPEN_DEFAULT_VIEWER, isAssoCommandExisting(curBuf->getFullPathName()), MENU); - enableCommand(IDM_VIEW_IN_FIREFOX, isAssoCommandExisting(curBuf->getFullPathName()), MENU); - enableCommand(IDM_VIEW_IN_CHROME, isAssoCommandExisting(curBuf->getFullPathName()), MENU); - enableCommand(IDM_VIEW_IN_IE, isAssoCommandExisting(curBuf->getFullPathName()), MENU); - enableCommand(IDM_VIEW_IN_EDGE, isAssoCommandExisting(curBuf->getFullPathName()), MENU); + enableCommand(IDM_VIEW_IN_FIREFOX, isFileExisting, MENU); + enableCommand(IDM_VIEW_IN_CHROME, isFileExisting, MENU); + enableCommand(IDM_VIEW_IN_IE, isFileExisting, MENU); + enableCommand(IDM_VIEW_IN_EDGE, isFileExisting, MENU); enableConvertMenuItems(curBuf->getEolFormat()); checkUnicodeMenuItems();