[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 9 years ago committed by Don Ho
parent 9b4e8888b0
commit e63f5d3908

@ -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);

Loading…
Cancel
Save