mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:45:22 +00:00
UI: Fix for Qt 6.1
This commit is contained in:
parent
b054417562
commit
bbc4b3503c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user