diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2021-09-17 15:26:07 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2021-09-22 13:55:58 +0200 |
commit | 9e770e357256aff5ca267f82792128ef61d0b278 (patch) | |
tree | 008819b7bda53a55f26d531e4d322c3a32cd5c40 | |
parent | 0728e88be6981e512509c64681685c9880bbfa91 (diff) |
QNetworkInformation: Request all supported feature when loading by name
When we load by name we used to pass an empty QList to the backend as
the list of requested features. That's not ideal if a backend were to
selectively initialize components, so let's just pass the list of
supported features.
Not a problem in any current backend but it looks weird.
Pick-to: 6.2
Change-Id: Ib022778b08d32e4057103a86bfdda9e17e6ebdaf
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
-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 56ffe15cbf..a410cf2214 100644 --- a/src/network/kernel/qnetworkinformation.cpp +++ b/src/network/kernel/qnetworkinformation.cpp @@ -235,7 +235,7 @@ QNetworkInformation *QNetworkInformationPrivate::create(QStringView name) #ifdef DEBUG_LOADING qDebug() << "Creating instance using loader named " << (*it)->name(); #endif - QNetworkInformationBackend *backend = (*it)->create({}); + QNetworkInformationBackend *backend = (*it)->create((*it)->featuresSupported()); if (!backend) return nullptr; dataHolder->instanceHolder.reset(new QNetworkInformation(backend)); |