https://bugs.kde.org/show_bug.cgi?id=443074

            Bug ID: 443074
           Summary: Cannot use bundle-backed resources if versioned and
                    the files have been deleted on disk
           Product: krita
           Version: git master (please specify the git hash!)
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Resource Management
          Assignee: krita-bugs-n...@kde.org
          Reporter: a...@amyspark.me
  Target Milestone: ---

SUMMARY

If the versioned file backing a modified resource is deleted, and this resource
is originally part of a bundle, Krita no longer recognizes the resource.

STEPS TO REPRODUCE
1. Edit one of the predefined SeExpr scripts, e.g. Wolthera's Conical Gradient.
2. Overwrite the script.
3. Close Krita.
4. Delete the generated file, it should be in e.g.
"Krita_Artists_SeExpr_examples.bundle_modified\seexpr_scripts\Wolthera's_Conical_Gradient.0001.kse"
5. Open Krita again and try to select Wolthera's Conical Gradient.

OBSERVED RESULT

Krita does not recognize the resources anymore. It is rendered in the resource
chooser, but selecting it has no effect.

If a resource was stored as the default one (via preferences), selecting the
broken resource will cause the default one to be rendered, but without updating
the resource chooser.

EXPECTED RESULT

Krita should fall back to the resource version existing in the bundle and
continue normally.

SOFTWARE/OS VERSIONS
Windows: 10 20H2 (19042.1237)
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.64.0
Qt Version: 5.12.11

ADDITIONAL INFORMATION

Git hash 016cca2132

This bug was tested with the upcoming MR for SeExpr scripts, but should be
equally reproducible with e.g. brush presets, as the versioning is handled by
the resource system.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to