Diffusion Krita e552de611918

Fix retrieving a pattern from an AslStorage

Authored by tymond on Feb 22 2020, 12:17 PM.

Description

Fix retrieving a pattern from an AslStorage

Before this commit, retrieving a pattern from the AslStorage
wouldn't work because it had a resourceType in the filename.
Now it removes the resourceType from the file path.
Note that in bundles and folders patterns are inside a folder,
while ASL is a file (not even an archive like a bundle), so
there is no folders inside, so the "path" is fake and the only
information we need is the uuid and if it's a pattern or a style.

Btw: since we do have the prefix in the file path, maybe we could
skip adding the _[resource type] at the end of the file path.

Details

Committed
tymondFeb 22 2020, 2:15 PM
Parents
R37:9ff65ae2a325: Fix crash on access null res in assert in KisLocator
Branches
Unknown
Tags
Unknown