summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qmake/generators/win32/msvc_vcproj.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qmake/generators/win32/msvc_vcproj.cpp b/qmake/generators/win32/msvc_vcproj.cpp
index fbc2f6b0a6..f86c8512d4 100644
--- a/qmake/generators/win32/msvc_vcproj.cpp
+++ b/qmake/generators/win32/msvc_vcproj.cpp
@@ -149,8 +149,10 @@ DotNET which_dotnet_version()
const QString productPath = installPaths.value(dotNetCombo[i].version);
if (productPath.isEmpty())
continue;
- if (path.startsWith(productPath, Qt::CaseInsensitive))
- return dotNetCombo[i].version;
+ if (path.startsWith(productPath, Qt::CaseInsensitive)) {
+ current_version = dotNetCombo[i].version;
+ return current_version;
+ }
}
}