aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/updatemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/updatemanager.cpp')
-rw-r--r--desktop-widgets/updatemanager.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/desktop-widgets/updatemanager.cpp b/desktop-widgets/updatemanager.cpp
index 0760d6407..2ab92b3a5 100644
--- a/desktop-widgets/updatemanager.cpp
+++ b/desktop-widgets/updatemanager.cpp
@@ -1,5 +1,6 @@
#include "updatemanager.h"
#include "helpers.h"
+#include "qthelper.h"
#include <QtNetwork>
#include <QMessageBox>
#include <QUuid>
@@ -60,22 +61,6 @@ void UpdateManager::checkForUpdates(bool automatic)
connect(SubsurfaceWebServices::manager()->get(request), SIGNAL(finished()), this, SLOT(requestReceived()), Qt::UniqueConnection);
}
-QString UpdateManager::getUUID()
-{
- QString uuidString;
- QSettings settings;
- settings.beginGroup("UpdateManager");
- if (settings.contains("UUID")) {
- uuidString = settings.value("UUID").toString();
- } else {
- QUuid uuid = QUuid::createUuid();
- uuidString = uuid.toString();
- settings.setValue("UUID", uuidString);
- }
- uuidString.replace("{", "").replace("}", "");
- return uuidString;
-}
-
void UpdateManager::requestReceived()
{
bool haveNewVersion = false;