[BUG_FIXED] Fix snapshot file after saving being always dirty (closes

Fix preventing override of dirty state on saving snapshot file.
pull/608/head^2
Adrian Avramescu 2015-07-29 13:18:24 -07:00 committed by Don Ho
parent 9b4e8888b0
commit e63f5d3908
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ BOOL Notepad_plus::notify(SCNotification *notification)
if (isSnapshotMode && !isDirty)
{
bool canUndo = _pEditView->execute(SCI_CANUNDO) == TRUE;
if (!canUndo && buf->isLoadedDirty())
if (!canUndo && buf->isLoadedDirty() && buf->isDirty())
isDirty = true;
}
buf->setDirty(isDirty);