aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2013-11-26 15:35:38 +0100
committerChristian Kandeler <christian.kandeler@digia.com>2013-11-27 12:43:55 +0100
commitb6e61c7631e232044b48cd0feb4523522e1e639c (patch)
treed707c341e29092728bc21302db1f19fa00e93825
parent8df780a98059f221bd7b6096697b98501685c8af (diff)
use the Windows SDK version, not the ProductVersion
The "ProductVersion" of the Windows SDK is mostly useless for the user. Also, it can contain strange values like "6.2..9200", so better don't use it. Change-Id: I8c56979e4c020215558e328e0d936a8e0765554b Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
-rw-r--r--src/app/detect-toolchains/msvcprobe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/detect-toolchains/msvcprobe.cpp b/src/app/detect-toolchains/msvcprobe.cpp
index 2039061cd..50cadc2b1 100644
--- a/src/app/detect-toolchains/msvcprobe.cpp
+++ b/src/app/detect-toolchains/msvcprobe.cpp
@@ -117,7 +117,7 @@ void msvcProbe(Settings *settings, QList<Profile> &profiles)
if (!defaultSdkPath.isEmpty()) {
foreach (const QString &sdkKey, sdkRegistry.childGroups()) {
WinSDK sdk;
- sdk.version = sdkRegistry.value(sdkKey + QLatin1String("/ProductVersion")).toString();
+ sdk.version = sdkKey;
sdk.installPath = sdkRegistry.value(sdkKey + QLatin1String("/InstallationFolder")).toString();
sdk.isDefault = (sdk.installPath == defaultSdkPath);
if (sdk.installPath.isEmpty())