summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-13 19:04:17 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-03 13:26:55 -0800
commit057c151fe8592ec5f160ae5f7891c1f1b5c998dc (patch)
tree4fad01c8503872722de5e56638e614a9549ba61c /core/qthelper.cpp
parenta23c3d0bb1a0e103f3dea9f93960992080753156 (diff)
downloadsubsurface-057c151fe8592ec5f160ae5f7891c1f1b5c998dc.tar.gz
build-system: start adding a headless build
Right now this doesn't do a thing, but it gives us a nice target that has far fewer dependencies and should contain enough parts to download stuff from a divecomputer and then sync that with cloud storage. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index fd19e78a3..2e74c5625 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -419,6 +419,8 @@ QString getUserAgent()
// replace all other ':' with ' ' so that this is easy to parse
#ifdef SUBSURFACE_MOBILE
QString userAgent = QString("Subsurface-mobile:%1(%2):").arg(subsurface_mobile_version()).arg(subsurface_canonical_version());
+#elif SUBSURFACE_DOWNLOADER
+ QString userAgent = QString("Subsurface-downloader:%1:").arg(subsurface_canonical_version());
#else
QString userAgent = QString("Subsurface:%1:").arg(subsurface_canonical_version());
#endif