Commit 420635d1 authored by Ivan Yossi's avatar Ivan Yossi 👌

Fix undo/redo not restoring clean state.

Only set image as modified if the undo index is not in the
clean state.

BUG:402263
parent 1d2da173
......@@ -2093,7 +2093,8 @@ void KisDocument::hackPreliminarySetImage(KisImageSP image)
void KisDocument::setImageModified()
{
setModified(true);
// we only set as modified if undo stack is not at clean state
setModified(!d->undoStack->isClean());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment