[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
This commit is contained in:
Don Ho 2014-12-15 23:13:01 +00:00
parent 9cd8716863
commit 1ebef477cc
1 changed files with 2 additions and 1 deletions

View File

@ -4667,7 +4667,8 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask)
if (doReloadOrNot(buffer->getFullPathName(), buffer->isDirty()) != IDYES) if (doReloadOrNot(buffer->getFullPathName(), buffer->isDirty()) != IDYES)
break; //abort 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); doReload(buffer->getID(), false);
if (mainActive || subActive) if (mainActive || subActive)
{ {