Remove not present networks from QNetworkInterface::allInterfaces
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Fri, 4 May 2012 10:18:38 +0000 (11:18 +0100)
committerQt by Nokia <qt-info@nokia.com>
Sat, 5 May 2012 01:49:58 +0000 (03:49 +0200)
commit360c481840ece253bf7235e901508c96a085e018
tree085f31a13b29476ade6552bf547c77ed55d20387
parentbcc9c50b50ba3521dc5bc39d823f781173885ca4
Remove not present networks from QNetworkInterface::allInterfaces

Windows 7 accumulates networks over time with the status
"not present". This is so it can remember whether a given network
was a public, home or work network next time you use it.
By default, these networks are not returned when enumerating
network interfaces, but we specified a flag to request all networks.
These networks are generally not useful so use the default behaviour
of not reporting them.

Task-number: QTBUG-18824
Change-Id: I4edc4cea83a0e97a88ac649b7d8af95a8a600b89
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/network/kernel/qnetworkinterface_win.cpp