From e63f5d39082547ce3fe2e5c7656199d744cabbf4 Mon Sep 17 00:00:00 2001 From: Adrian Avramescu Date: Wed, 29 Jul 2015 13:18:24 -0700 Subject: [PATCH] [BUG_FIXED] Fix snapshot file after saving being always dirty (closes Fix preventing override of dirty state on saving snapshot file. --- PowerEditor/src/NppNotification.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/NppNotification.cpp b/PowerEditor/src/NppNotification.cpp index 2366eb327..9e35b8681 100644 --- a/PowerEditor/src/NppNotification.cpp +++ b/PowerEditor/src/NppNotification.cpp @@ -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);