Commit 2b75543e authored by agriche's avatar agriche

- comment all checkupdate().

parent e3d81650
...@@ -65,6 +65,8 @@ ...@@ -65,6 +65,8 @@
#include "ui_mainWindow.h" #include "ui_mainWindow.h"
#ifdef Q_WS_MAC #ifdef Q_WS_MAC
#include <Carbon/Carbon.h> #include <Carbon/Carbon.h>
#endif #endif
...@@ -496,6 +498,8 @@ void UBApplicationController::checkUpdate(QString urlString) ...@@ -496,6 +498,8 @@ void UBApplicationController::checkUpdate(QString urlString)
mHttp->get(url.path()); mHttp->get(url.path());
*/ */
#else
if(mHttpreply) if(mHttpreply)
mHttpreply->deleteLater(); mHttpreply->deleteLater();
QUrl url(urlString); QUrl url(urlString);
...@@ -504,8 +508,6 @@ void UBApplicationController::checkUpdate(QString urlString) ...@@ -504,8 +508,6 @@ void UBApplicationController::checkUpdate(QString urlString)
connect(mHttpreply, SIGNAL(responseHeaderReceived(QHttpResponseHeader)), this, SLOT(updateHeaderReceived(QHttpResponseHeader))); connect(mHttpreply, SIGNAL(responseHeaderReceived(QHttpResponseHeader)), this, SLOT(updateHeaderReceived(QHttpResponseHeader)));
// mHttpreply->setUrl(url.path()); // mHttpreply->setUrl(url.path());
//mHttp->get(url.path()); //mHttp->get(url.path());
#else
#endif #endif
} }
...@@ -585,14 +587,14 @@ void UBApplicationController::checkAtLaunch() ...@@ -585,14 +587,14 @@ void UBApplicationController::checkAtLaunch()
if(UBSettings::settings()->appEnableAutomaticSoftwareUpdates->get().toBool()){ if(UBSettings::settings()->appEnableAutomaticSoftwareUpdates->get().toBool()){
isNoUpdateDisplayed = false; isNoUpdateDisplayed = false;
checkUpdate (); //checkUpdate ();
} }
} }
void UBApplicationController::checkUpdateRequest() void UBApplicationController::checkUpdateRequest()
{ {
isNoUpdateDisplayed = true; isNoUpdateDisplayed = true;
checkUpdate (); //checkUpdate ();
} }
void UBApplicationController::hideDesktop() void UBApplicationController::hideDesktop()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment