From 90afac88c4f5ac7dda3e79ea8aa9d6eaae8e00eb Mon Sep 17 00:00:00 2001 From: Adrian Avramescu Date: Sat, 19 Sep 2015 21:43:20 -0700 Subject: [PATCH] Fix Save All button is still enabled problem while no file to save. Update state after closing tab (closes #935, fixes #850, fixes #915) --- PowerEditor/src/NppNotification.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/NppNotification.cpp b/PowerEditor/src/NppNotification.cpp index 204038b60..3937dc4bb 100644 --- a/PowerEditor/src/NppNotification.cpp +++ b/PowerEditor/src/NppNotification.cpp @@ -242,7 +242,10 @@ BOOL Notepad_plus::notify(SCNotification *notification) { activateBuffer(bufferToClose, iView); } - fileClose(bufferToClose, iView); + + if (fileClose(bufferToClose, iView)) + checkDocState(); + break; }