diff options
author | Fabian Müller <fmueller@owncloud.com> | 2021-08-02 18:10:58 +0300 |
---|---|---|
committer | Fabian Müller <80399010+fmoc@users.noreply.github.com> | 2021-08-06 18:43:48 +0300 |
commit | 77bdb650b13b6c65c34ad9cb6e2fe92408d4721e (patch) | |
tree | b3e92e4b446dfe3b3fc67aa2ee2ead180cb4d84a /src/common | |
parent | 60313edb96eb2eb82b396ad86bca6e62db0c48cc (diff) |
Explicitly use appNameGUI from theme where applicable
QApplication::applicationName() is not necessarily stable, as its value has changed a lot (e.g., from 2.8 to 2.9). Therefore, using it should be avoided. The theme allows using both short and GUI name explicitly.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/utility.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/utility.cpp b/src/common/utility.cpp index e4336db60..d5b51215e 100644 --- a/src/common/utility.cpp +++ b/src/common/utility.cpp @@ -180,6 +180,8 @@ QByteArray Utility::userAgentString() return QStringLiteral("Mozilla/5.0 (%1) mirall/%2 (%3, %4-%5 ClientArchitecture: %6 OsArchitecture: %7)") .arg(platform(), QStringLiteral(MIRALL_VERSION_STRING), + // accessing the theme to fetch the string is rather difficult + // since this is only needed server-side to identify clients, the app name (as of 2.9, the short name) is good enough qApp->applicationName(), QSysInfo::productType(), QSysInfo::kernelVersion(), |