summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-08 11:13:05 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-08 11:13:05 -0700
commit827d4740c3bc2d449ab32a1ef829191bff20d46f (patch)
treed93378fce52b3456c0438c0f73e876c45fba3b11 /qt-ui/subsurfacewebservices.cpp
parenta9f59c0cb3c1aa038a1d0c035d47130ddba58beb (diff)
downloadsubsurface-827d4740c3bc2d449ab32a1ef829191bff20d46f.tar.gz
Better User Agent for Subsurface
This one is less verbose and very easy to parse. It's guaranteed to have five components, separated by ':' with no other ':' in the string: Subsurface:<version>:<PrettyOSName>:<appCpuArch[/osCpuArch]>:<UILang> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r--qt-ui/subsurfacewebservices.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index 2b988c7a6..c3661e0ef 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -223,7 +223,7 @@ WebServices::WebServices(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f
ui.buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false);
timeout.setSingleShot(true);
defaultApplyText = ui.buttonBox->button(QDialogButtonBox::Apply)->text();
- userAgent = UserSurvey::getVersion().replace("\n", " ");
+ userAgent = UserSurvey::getUserAgent();
}
void WebServices::hidePassword()