From 9e770e357256aff5ca267f82792128ef61d0b278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Fri, 17 Sep 2021 15:26:07 +0200 Subject: 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 Reviewed-by: Timur Pocheptsov --- src/network/kernel/qnetworkinformation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3