qmake vc(x)project generator: fix VC++ Express detection
If VC++ 2010 Express and VC# 2010 Express are installed, then the installation path is written in two places into the registry. We're now filtering detected installations with the same installation path. Task-number: QTBUG-24956 Change-Id: I401430e7aa81d96c523d8172d2a2e9d40ebdb3ce Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
6b54a04bc6
commit
99a2074369
@ -115,11 +115,13 @@ DotNET which_dotnet_version()
|
||||
current_version = NET2002;
|
||||
|
||||
QStringList warnPath;
|
||||
QHash<DotNET, QString> installPaths;
|
||||
int installed = 0;
|
||||
int i = 0;
|
||||
for(; dotNetCombo[i].version; ++i) {
|
||||
QString path = qt_readRegistryKey(HKEY_LOCAL_MACHINE, dotNetCombo[i].regKey);
|
||||
if(!path.isEmpty()) {
|
||||
if (!path.isEmpty() && installPaths.value(dotNetCombo[i].version) != path) {
|
||||
installPaths.insert(dotNetCombo[i].version, path);
|
||||
++installed;
|
||||
current_version = dotNetCombo[i].version;
|
||||
warnPath += QString("%1").arg(dotNetCombo[i].versionStr);
|
||||
|
Loading…
Reference in New Issue
Block a user