Commit 272e8a06 authored by Mathias Wein's avatar Mathias Wein
Browse files

Don't filter resources with empty filename string

This fixes brush preset history and last used preset loading
on launch (again).
parent 4b933a69
Pipeline #80466 skipped with stage
......@@ -308,9 +308,9 @@ public:
QSharedPointer<T> resource;
if (resources.size() > 0) {
Q_FOREACH(KoResourceSP r, resources) {
if (r->filename() == fileName) {
if (fileName.isEmpty() || r->filename() == fileName) {
if (md5.isEmpty() || md5 == r->md5Sum()) {
resource = r.dynamicCast<T>();;
resource = r.dynamicCast<T>();
break;
}
}
......
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