Bug 440896 - KisPaintOpDelegate loads dependent resources
Summary: KisPaintOpDelegate loads dependent resources
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Halla Rempt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-12 12:28 UTC by Halla Rempt
Modified: 2021-08-13 09:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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