Bug 440896

Summary: KisPaintOpDelegate loads dependent resources
Product: [Applications] krita Reporter: Halla Rempt <halla>
Component: Resource ManagementAssignee: Halla Rempt <halla>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Halla Rempt 2021-08-12 12:28:27 UTC
Insteead of checking the database
Comment 1 Halla Rempt 2021-08-13 09:50:28 UTC
Git commit 6df5d1260381bf8d1185ae1df3ff818d8e758c24 by Halla Rempt.
Committed on 13/08/2021 at 09:49.
Pushed by rempt into branch 'master'.

Add a resourceExists() method to KisAllResourcesModel

This can be used to check whether a resource exists without actually
loading the resource. Note that newly created paintop presets will
never have a missing dependent resource, so you cannot test this
with presets made in Krita 5.

M  +63   -0    libs/resources/KisResourceModel.cpp
M  +6    -0    libs/resources/KisResourceModel.h
M  +1    -1    libs/ui/widgets/kis_preset_chooser.cpp

https://invent.kde.org/graphics/krita/commit/6df5d1260381bf8d1185ae1df3ff818d8e758c24