Insteead of checking the database
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