UI: Fix for Qt 6.1

This commit is contained in:
Nodir Temirkhodjaev 2023-12-20 12:13:06 +03:00
parent b054417562
commit bbc4b3503c

View File

@ -504,7 +504,12 @@ QString ConfUtil::parseAppPath(const StringView line, bool &isWild, bool &isPref
if (path.isEmpty())
return QString();
const auto wildMatch = wildMatcher.matchView(path);
const auto wildMatch = wildMatcher
#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
.matchView(path);
#else
.match(path);
#endif
if (wildMatch.hasMatch()) {
if (wildMatch.capturedStart() == path.size() - 2 && path.endsWith(QLatin1String("**"))) {
path.chop(2);