Change update interval according to settings. Perform extended check for connection.
[yandex-traffic] / http_fetcher.cpp
index a518e9f..2d1d030 100644 (file)
@@ -2,8 +2,6 @@
 #include <QtNetwork>
 
 #include "http_fetcher.hpp"
-#include "connection.hpp"
-#include "globals.hpp"
 
 // --------------------------------------------------
 // HttpFetcher
@@ -25,11 +23,10 @@ void HttpFetcher::fetch (const QString& url)
 {
     QUrl u (url);
 
-    if (!CHECK_FOR_CONNECTION || ConnectionChecker::instance ()->isConnected ())
-        if (u.isValid ()) {
-            _http.setHost (u.host ());
-            _http.get (u.encodedPath (), &_buffer);
-        }
+    if (u.isValid ()) {
+        _http.setHost (u.host ());
+        _http.get (u.encodedPath (), &_buffer);
+    }
 }