summaryrefslogtreecommitdiff
path: root/src/envwindows.cpp
diff options
context:
space:
mode:
authorChris Bessent <lost.dragonist@gmail.com>2021-11-23 20:05:29 -0700
committerGitHub <noreply@github.com>2021-11-23 20:05:29 -0700
commitfc40619fd9383eaf2bc7d0ba14695404b7f55bdb (patch)
tree7c6dbfbdea980ac1913e3066a5f2fb50e196f9bd /src/envwindows.cpp
parent6ab88d5de108887dd97e0899e2554ee36cc3bdee (diff)
parent565f2fddf4cf29fec3f8626ae4f7acba8aef615c (diff)
Merge pull request #1621 from LostDragonist/misc_fixes
Misc fixes
Diffstat (limited to 'src/envwindows.cpp')
-rw-r--r--src/envwindows.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/envwindows.cpp b/src/envwindows.cpp
index 98e78a3e..a2019fab 100644
--- a/src/envwindows.cpp
+++ b/src/envwindows.cpp
@@ -94,11 +94,6 @@ QString WindowsInfo::toString() const
sl.push_back(m_release.buildLab);
}
- // product name
- if (!m_release.productName.isEmpty()) {
- sl.push_back(m_release.productName);
- }
-
// elevated
QString elevated = "?";
if (m_elevated.has_value()) {
@@ -187,11 +182,11 @@ WindowsInfo::Release WindowsInfo::getRelease() const
}
}
- // localized name of windows, such as "Windows 10 Pro"
- r.productName = settings.value("ProductName", "").toString();
-
// release ID, such as 1803
- r.ID = settings.value("ReleaseId", "").toString();
+ r.ID = settings.value("DisplayVersion", "").toString();
+ if (r.ID.isEmpty()) {
+ r.ID = settings.value("ReleaseId", "").toString();
+ }
// some other build number, shown in winver.exe
r.UBR = settings.value("UBR", 0).toUInt();