Commit 8d32f9a3 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Make sure that the storage is not removed when its file extension is uppercase

BUG:447454
parent 4315e88c
Pipeline #113832 skipped with stage
......@@ -1076,9 +1076,9 @@ QString KisResourceLocator::makeStorageLocationAbsolute(QString storageLocation)
return resourceLocationBase();
}
if (QFileInfo(storageLocation).isRelative() && (storageLocation.endsWith("bundle")
|| storageLocation.endsWith("asl")
|| storageLocation.endsWith("abr"))) {
if (QFileInfo(storageLocation).isRelative() && (storageLocation.endsWith(".bundle", Qt::CaseInsensitive)
|| storageLocation.endsWith(".asl", Qt::CaseInsensitive)
|| storageLocation.endsWith(".abr", Qt::CaseInsensitive))) {
if (resourceLocationBase().endsWith('/') || resourceLocationBase().endsWith("\\")) {
storageLocation = resourceLocationBase() + storageLocation;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment