diff --git a/src/plasmaquick/packageurlinterceptor.cpp b/src/plasmaquick/packageurlinterceptor.cpp --- a/src/plasmaquick/packageurlinterceptor.cpp +++ b/src/plasmaquick/packageurlinterceptor.cpp @@ -112,7 +112,7 @@ return d->selector->select(path); } const QString prefix = QString::fromUtf8(prefixForType(type, path.path())); - QRegularExpression match(QStringLiteral("/ui/(.*)")); + static QRegularExpression match(QStringLiteral("/ui/(.*)")); // TODO KF6: Kill this hack QString plainPath = path.toString(); if (plainPath.contains(match)) {