From 17c40213ca6adbc479907fe3621144da49e40602 Mon Sep 17 00:00:00 2001 From: Rajendra Singh Date: Mon, 11 Feb 2019 23:15:36 +0530 Subject: [PATCH] Tab context menu bug fixes Disable "Open containing Folder in Explorer" and "Open Containing Folder in CMD" commands for document non-exist on hard disk. Close #5312 --- PowerEditor/src/NppNotification.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerEditor/src/NppNotification.cpp b/PowerEditor/src/NppNotification.cpp index 6490b5365..6342773f5 100644 --- a/PowerEditor/src/NppNotification.cpp +++ b/PowerEditor/src/NppNotification.cpp @@ -565,6 +565,8 @@ BOOL Notepad_plus::notify(SCNotification *notification) bool isFileExisting = PathFileExists(buf->getFullPathName()) != FALSE; _tabPopupMenu.enableItem(IDM_FILE_DELETE, isFileExisting); _tabPopupMenu.enableItem(IDM_FILE_RENAME, isFileExisting); + _tabPopupMenu.enableItem(IDM_FILE_OPEN_FOLDER, isFileExisting); + _tabPopupMenu.enableItem(IDM_FILE_OPEN_CMD, isFileExisting); _tabPopupMenu.enableItem(IDM_FILE_OPEN_DEFAULT_VIEWER, isAssoCommandExisting(buf->getFullPathName()));