From 2b75543ee30bdb72098413c6ded658d78cb5d5de Mon Sep 17 00:00:00 2001 From: agriche Date: Mon, 30 Nov 2015 11:00:36 +0100 Subject: [PATCH] - comment all checkupdate(). --- src/core/UBApplicationController.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/core/UBApplicationController.cpp b/src/core/UBApplicationController.cpp index 6bfcbdef..f1cfa729 100644 --- a/src/core/UBApplicationController.cpp +++ b/src/core/UBApplicationController.cpp @@ -65,6 +65,8 @@ #include "ui_mainWindow.h" + + #ifdef Q_WS_MAC #include #endif @@ -496,6 +498,8 @@ void UBApplicationController::checkUpdate(QString urlString) mHttp->get(url.path()); */ + +#else if(mHttpreply) mHttpreply->deleteLater(); QUrl url(urlString); @@ -504,8 +508,6 @@ void UBApplicationController::checkUpdate(QString urlString) connect(mHttpreply, SIGNAL(responseHeaderReceived(QHttpResponseHeader)), this, SLOT(updateHeaderReceived(QHttpResponseHeader))); // mHttpreply->setUrl(url.path()); //mHttp->get(url.path()); -#else - #endif } @@ -585,14 +587,14 @@ void UBApplicationController::checkAtLaunch() if(UBSettings::settings()->appEnableAutomaticSoftwareUpdates->get().toBool()){ isNoUpdateDisplayed = false; - checkUpdate (); + //checkUpdate (); } } void UBApplicationController::checkUpdateRequest() { isNoUpdateDisplayed = true; - checkUpdate (); + //checkUpdate (); } void UBApplicationController::hideDesktop()