Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/OSInfo.cpp')
-rw-r--r--src/OSInfo.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/OSInfo.cpp b/src/OSInfo.cpp
index 982b2864a..e665ddb62 100644
--- a/src/OSInfo.cpp
+++ b/src/OSInfo.cpp
@@ -200,9 +200,6 @@ QString OSInfo::getOSDisplayableVersion(const bool appendArch) {
return QString();
}
- _SYSTEM_INFO si;
- GetNativeSystemInfo(&si);
-
if (ovi.dwMajorVersion == 10) {
if (ovi.wProductType == VER_NT_WORKSTATION) {
os = QLatin1String("Windows 10");
@@ -327,6 +324,8 @@ QString OSInfo::getOSDisplayableVersion(const bool appendArch) {
return os;
}
+#elif defined(Q_OS_MACOS)
+ const QString os = QLatin1String("macOS ") + getOSVersion();
#else
const QString os = QSysInfo::prettyProductName();
#endif
@@ -376,8 +375,7 @@ QString OSInfo::getOSVersion() {
#endif
}
-void OSInfo::fillXml(QDomDocument &doc, QDomElement &root, const QString &os, const QString &osver,
- const QList< QHostAddress > &qlBind) {
+void OSInfo::fillXml(QDomDocument &doc, QDomElement &root, const QList< QHostAddress > &qlBind) {
QDomElement tag = doc.createElement(QLatin1String("machash"));
root.appendChild(tag);
QDomText t = doc.createTextNode(getMacHash(qlBind));
@@ -400,7 +398,7 @@ void OSInfo::fillXml(QDomDocument &doc, QDomElement &root, const QString &os, co
tag = doc.createElement(QLatin1String("os"));
root.appendChild(tag);
- t = doc.createTextNode(os);
+ t = doc.createTextNode(getOS());
tag.appendChild(t);
tag = doc.createElement(QLatin1String("osarch"));
@@ -410,7 +408,7 @@ void OSInfo::fillXml(QDomDocument &doc, QDomElement &root, const QString &os, co
tag = doc.createElement(QLatin1String("osver"));
root.appendChild(tag);
- t = doc.createTextNode(osver);
+ t = doc.createTextNode(getOSVersion());
tag.appendChild(t);
tag = doc.createElement(QLatin1String("osverbose"));