diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2021-09-17 16:01:21 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2021-09-20 21:00:01 +0200 |
commit | 810e4e56bdf958a16723cef19cbfd1aa2ba6e942 (patch) | |
tree | 46b882ef8c339ef99037e553b9503419be5e0ecf /src | |
parent | bf5d5bfc0ce8a1cfddaf954eb0c5225be4f429a5 (diff) |
QNetworkInformation: Actually compare names case insensitively
The docs (10 lines above) say it will find the backend case
insensitively. Thus the comparison should also be case-insensitive.
Pick-to: 6.2
Change-Id: I65901ed81b7d8bdfcf76f5b6c7b40efe63245503
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/network/kernel/qnetworkinformation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qnetworkinformation.cpp b/src/network/kernel/qnetworkinformation.cpp index 82dee811d2..56ffe15cbf 100644 --- a/src/network/kernel/qnetworkinformation.cpp +++ b/src/network/kernel/qnetworkinformation.cpp @@ -556,7 +556,7 @@ bool QNetworkInformation::supports(Features features) const bool QNetworkInformation::load(QStringView backend) { auto loadedBackend = QNetworkInformationPrivate::create(backend); - return loadedBackend && loadedBackend->backendName() == backend; + return loadedBackend && loadedBackend->backendName().compare(backend, Qt::CaseInsensitive) == 0; } /*! |