Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
1.2.1
-
None
-
Application developed on Windows using QtCreator and running on a Nokia N9 connected via USB to the PC in SDK mode.
Description
I have a Nokia N9 without SIM nor connected WIFI. My application contains this code:
QSystemNetworkInfo* networkInfo = new QtMobility::QSystemNetworkInfo(); QSystemNetworkInfo::NetworkMode activeMode = networkInfo->currentMode(); if (networkInfo->networkStatus(activeMode) != QSystemNetworkInfo::Connected) { ... } else { ... }
When the phone is connected via USB to my PC, currentMode() returns EthernetMode and networkStatus(currentMode()) returns Connected but in reality the network is not available (the error message is "Network session error.").
I'd expect that currentMode() returns UnknownMode or that networkStatus(currentMode()) returns NoNetworkAvailable.