View Single Post
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1
Hi,
I make an app for Fremantle and Harmattan, but there's a problem when running on Harmattan.
This code run properly on Fremantle, but on Harmattan doesn't.
Code:
    QNetworkConfigurationManager manager;
    QNetworkConfiguration cfg = manager.defaultConfiguration();
    if (manager.isOnline() == false) return static_cast<CURLcode>(-2);
On Harmattan, if there was no internet connection the first time the function was run, there is always manager.isOnline == false
(run when no internet, enabled internet, run with internet accessible)
This is returned that way even when I can browse the net with the built-in browser.

After restarting the application with internet connection on, the function runs properly. But why is QNetworkConfigurationManager malfunctioning?

Thanks in advance
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here