mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-26 23:34:44 +02:00
[BUG_FIXED] Fix snapshot file after saving being always dirty (closes
Fix preventing override of dirty state on saving snapshot file.
This commit is contained in:
parent
9b4e8888b0
commit
e63f5d3908
@ -123,7 +123,7 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
|||||||
if (isSnapshotMode && !isDirty)
|
if (isSnapshotMode && !isDirty)
|
||||||
{
|
{
|
||||||
bool canUndo = _pEditView->execute(SCI_CANUNDO) == TRUE;
|
bool canUndo = _pEditView->execute(SCI_CANUNDO) == TRUE;
|
||||||
if (!canUndo && buf->isLoadedDirty())
|
if (!canUndo && buf->isLoadedDirty() && buf->isDirty())
|
||||||
isDirty = true;
|
isDirty = true;
|
||||||
}
|
}
|
||||||
buf->setDirty(isDirty);
|
buf->setDirty(isDirty);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user