path: root/src/plugins/bearer
diff options
authorAndy Shaw <>2015-06-19 14:26:56 +0200
committerAndy Shaw <>2015-06-23 05:56:36 +0000
commitbac1116d4997fa0c7c58538b39528ecc354d88d1 (patch)
tree9d5060eea9307b6a8327de4c9b72c4c16fd7e21f /src/plugins/bearer
parent756d451a15e5754ced815853598f2dec3be60aec (diff)
Only require polling when running on Windows XP
Since the restriction for what gets notified for Wireless network configurations is only on Windows XP then we only want to do polling on Windows XP. This gives a performance boost as it does not query every 10 seconds for no reason. Task-number: QTBUG-40332 Change-Id: I73e3903834abe9ffc5adc678de20f7428a578d89 Reviewed-by: Richard J. Moore <>
Diffstat (limited to 'src/plugins/bearer')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/bearer/nativewifi/qnativewifiengine.cpp b/src/plugins/bearer/nativewifi/qnativewifiengine.cpp
index 19852b70a8..7baea55ee7 100644
--- a/src/plugins/bearer/nativewifi/qnativewifiengine.cpp
+++ b/src/plugins/bearer/nativewifi/qnativewifiengine.cpp
@@ -606,7 +606,7 @@ bool QNativeWifiEngine::requiresPolling() const
// On Windows XP SP2 and SP3 only connection and disconnection notifications are available.
// We need to poll for changes in available wireless networks.
- return true;
+ return QSysInfo::WindowsVersion <= QSysInfo::WV_2003;