Summary: | Python Document.modified() flag is NOT set in edit operations. | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Aki <aki.rissanen> |
Component: | Scripting | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | scottpetrovic |
Priority: | NOR | ||
Version: | nightly build (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Appimage | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/dae801931bb59d6fcf060bda71e84389c5a3dc76 | Version Fixed In: |
Description
Aki
2020-08-06 09:13:14 UTC
I think the work here is going to be adding a few more areas that mark the document as modified. It looks like these areas do not change the "isModified" status. This is python code, but we probably can update the C++ code to set the isModified flag when these things happen... doc.setDocumentInfo(doc.documentInfo() + "\n") doc.setFramesPerSecond(int(doc.framesPerSecond() + 1)) doc.setFullClipRangeStartTime(doc.fullClipRangeStartTime() + 1) doc.setFullClipRangeEndTime(doc.fullClipRangeEndTime() + 1) doc.setFileName(doc.fileName() + ".ILBM") doc.setName(doc.name()[::-1]) Git commit 197cbccaf49a9f1e834b268de520e0b178f54045 by Halla Rempt. Committed on 19/09/2022 at 12:52. Pushed by rempt into branch 'master'. Add Document::setModified(bool) to the scripting api M +6 -0 libs/libkis/Document.cpp M +6 -0 libs/libkis/Document.h M +1 -0 plugins/extensions/pykrita/sip/krita/Document.sip https://invent.kde.org/graphics/krita/commit/197cbccaf49a9f1e834b268de520e0b178f54045 Git commit dae801931bb59d6fcf060bda71e84389c5a3dc76 by Halla Rempt. Committed on 19/09/2022 at 13:07. Pushed by rempt into branch 'krita/5.1'. Add Document::setModified(bool) to the scripting api (cherry picked from commit 78aedaf4b49bbfdda4473b187f5026d4de43908b) M +6 -0 libs/libkis/Document.cpp M +6 -0 libs/libkis/Document.h M +1 -0 plugins/extensions/pykrita/sip/krita/Document.sip https://invent.kde.org/graphics/krita/commit/dae801931bb59d6fcf060bda71e84389c5a3dc76 |