Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.0
-
None
Description
When offline at launch, QNetworkAccessManager::Get will continually return QDisabledNetworkReply pointers even after connection is established... unless you apply some magic sauce: QNetworkAccessManager::networkAccessible.
Calling that getter will trigger something behind the scenes allowing for requests to go through.
I attached a sample console project that demonstrates the issue in case it helps.
Steps to reproduce:
- Disable all network connections
- Run the project
- Watch errors in the console
- Enable a network connection
- Errors continue
Remove the commented out magic sauce and retry. In step 5 the calls will start to succeed.