Skip to content
Browse files

OSInfo: use 'WinX64' as the OS identifier for Windows/amd64 builds.

The OS string from OSInfo is used in places such as log files, and
in the Server Info and User Info dialogs.

I think it'll be beneficial in the long run to be able to
distinguish an x86 build from an amd64 on in these places.

Technically, the full OSInfo dump has an is64bit flag, but it's not
visible in the aforementioned places - only the OS string is. The
isb64bit flag is only used when submitting usage stats.
  • Loading branch information...
mkrautz committed Jul 15, 2014
1 parent 769855b commit 6d962818a2914b8ffac5046bd03b8f716a572068
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/OSInfo.cpp
@@ -87,7 +87,11 @@ QString OSInfo::getMacHash(const QList<QHostAddress> &qlBind) {

QString OSInfo::getOS() {
#if defined(Q_OS_WIN)
# if defined(Q_OS_WIN64)
return QLatin1String("WinX64");
# else
return QLatin1String("Win");
# endif
#elif defined(Q_OS_MAC)
return QLatin1String("OSX");

0 comments on commit 6d96281

Please sign in to comment.
You can’t perform that action at this time.