Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Krita
Commits
8d32f9a3
Commit
8d32f9a3
authored
Dec 24, 2021
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
libs/resources/KisResourceLocator.cpp
View file @
8d32f9a3
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment