aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/usersurvey.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-25 11:27:42 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-25 12:02:13 -0800
commit0f967063c0d4487ad71081564bfef139426c50b1 (patch)
tree2c37ff07b92c8c4800cd6fcb527cd0445200c1b8 /qt-ui/usersurvey.cpp
parented9a060d76db4b56f89b2f0d3f7fd87c9d98f239 (diff)
downloadsubsurface-0f967063c0d4487ad71081564bfef139426c50b1.tar.gz
Add unique but random UUID to server queries
With this we can easily eliminate duplicates from our user statistics. The UUID is completely random and there is no way to link it back to a specific user. By deleting the settings a user can force a new UUID. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/usersurvey.cpp')
-rw-r--r--qt-ui/usersurvey.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/usersurvey.cpp b/qt-ui/usersurvey.cpp
index ed5d121e2..4061d46df 100644
--- a/qt-ui/usersurvey.cpp
+++ b/qt-ui/usersurvey.cpp
@@ -6,6 +6,7 @@
#include "ui_usersurvey.h"
#include "ssrf-version.h"
#include "subsurfacewebservices.h"
+#include "updatemanager.h"
#include "helpers.h"
#include "subsurfacesysinfo.h"
@@ -30,6 +31,7 @@ UserSurvey::UserSurvey(QWidget *parent) : QDialog(parent),
os.append(QString("&osCpuArch=%1").arg(osArch));
}
os.append(QString("&uiLang=%1").arg(uiLanguage(NULL)));
+ os.append(QString("&uuid=%1").arg(UpdateManager::getUUID()));
ui->system->setPlainText(getVersion());
}