From 1ebef477cc8f5f66357cb427419958efa0e8ffb8 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 15 Dec 2014 23:13:01 +0000 Subject: [PATCH] [BUG_FIXED] Fix reloaded file on dirty status issue. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1308 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 32b5db8f..182f93e3 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -4667,7 +4667,8 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask) if (doReloadOrNot(buffer->getFullPathName(), buffer->isDirty()) != IDYES) break; //abort } - + // Set _isLoadedDirty false so when the document clean state is reached the icon will be set to blue + buffer->setLoadedDirty(false); doReload(buffer->getID(), false); if (mainActive || subActive) {