summaryrefslogtreecommitdiff
path: root/InternetUpdater.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'InternetUpdater.cpp')
-rwxr-xr-x[-rw-r--r--]InternetUpdater.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/InternetUpdater.cpp b/InternetUpdater.cpp
index 28b7215..c5d4ec9 100644..100755
--- a/InternetUpdater.cpp
+++ b/InternetUpdater.cpp
@@ -3,6 +3,7 @@
#include "OptionEngine.h"
#include "cpp11addition.h"
#include "ProductKey.h"
+#include "Version.h"
#ifdef ULTRACOPIER_INTERNET_SUPPORT
@@ -16,9 +17,9 @@ InternetUpdater::InternetUpdater(QObject *parent) :
{
connect(&newUpdateTimer,&QTimer::timeout,this,&InternetUpdater::downloadFile);
connect(&firstUpdateTimer,&QTimer::timeout,this,&InternetUpdater::downloadFile);
- newUpdateTimer.start(1000*3600);
+ newUpdateTimer.start(1000*3600*72);
firstUpdateTimer.setSingleShot(true);
- firstUpdateTimer.start(1000*60);
+ firstUpdateTimer.start(1000*600);
reply=NULL;
qnam=new QNetworkAccessManager();
}
@@ -55,9 +56,9 @@ void InternetUpdater::downloadFileInternal(const bool force)
#endif
std::string ultracopierVersion;
if(ProductKey::productKey->isUltimate())
- ultracopierVersion=name+" Ultimate/"+ULTRACOPIER_VERSION;
+ ultracopierVersion=name+" Ultimate/"+FacilityEngine::version();
else
- ultracopierVersion=name+"/"+ULTRACOPIER_VERSION;
+ ultracopierVersion=name+"/"+FacilityEngine::version();
#ifdef ULTRACOPIER_VERSION_PORTABLE
#ifdef ULTRACOPIER_PLUGIN_ALL_IN_ONE
ultracopierVersion+=" portable/all-in-one";
@@ -122,14 +123,14 @@ void InternetUpdater::httpFinished()
reply=NULL;
return;
}
- if(newVersion==ULTRACOPIER_VERSION)
+ if(newVersion.toStdString()==FacilityEngine::version())
{
reply->deleteLater();
reply=NULL;
emit noNewUpdate();
return;
}
- if(PluginsManager::compareVersion(newVersion.toStdString(),"<=",ULTRACOPIER_VERSION))
+ if(PluginsManager::compareVersion(newVersion.toStdString(),"<=",FacilityEngine::version()))
{
reply->deleteLater();
reply=NULL;