summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qurl.cpp
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2016-11-21 11:38:43 +0100
committerAndy Shaw <andy.shaw@qt.io>2016-11-22 07:05:30 +0000
commit3cd457bdad6eee4a703ef9773b80165a272fbdc7 (patch)
treec0112073c97b269e642a03653d408e19a65e0dec /src/corelib/io/qurl.cpp
parent9f17c245893e296d5c92ed1ef1e5d08896b469b1 (diff)
Handle RemovePath correctly when calling matches()
Change-Id: Ied324a537df127e676fad26b42e658a9d5aeec9b Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/corelib/io/qurl.cpp')
-rw-r--r--src/corelib/io/qurl.cpp3
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);