diff options
author | Andy Shaw <andy.shaw@qt.io> | 2016-11-21 11:38:43 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2016-11-22 07:05:30 +0000 |
commit | 3cd457bdad6eee4a703ef9773b80165a272fbdc7 (patch) | |
tree | c0112073c97b269e642a03653d408e19a65e0dec /src | |
parent | 9f17c245893e296d5c92ed1ef1e5d08896b469b1 (diff) |
Handle RemovePath correctly when calling matches()
Change-Id: Ied324a537df127e676fad26b42e658a9d5aeec9b
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/io/qurl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp index 7512bcd83f..de78d09dd9 100644 --- a/src/corelib/io/qurl.cpp +++ b/src/corelib/io/qurl.cpp @@ -3703,6 +3703,9 @@ bool QUrl::matches(const QUrl &url, FormattingOptions options) const if ((d->sectionIsPresent & mask) != (url.d->sectionIsPresent & mask)) return false; + if (options & QUrl::RemovePath) + return true; + // Compare paths, after applying path-related options QString path1; d->appendPath(path1, options, QUrlPrivate::Path); |