summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qmake/generators/win32/msbuild_objectmodel.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/qmake/generators/win32/msbuild_objectmodel.cpp b/qmake/generators/win32/msbuild_objectmodel.cpp
index e6be3334e4..1e70fcc850 100644
--- a/qmake/generators/win32/msbuild_objectmodel.cpp
+++ b/qmake/generators/win32/msbuild_objectmodel.cpp
@@ -1895,11 +1895,10 @@ void VCXProjectWriter::outputFileConfigs(VCProject &project, XmlOutput &xml, Xml
bool fileAdded = false;
for (int i = 0; i < project.SingleProjects.count(); ++i) {
- const VCFilter &filter = project.SingleProjects.at(i).filterByName(cleanFilterName);
- if (!filter.Config) // only if the filter is not empty
+ OutputFilterData *d = &data[i];
+ if (!d->filter.Config) // only if the filter is not empty
continue;
- if (outputFileConfig(&data[i], xml, xmlFilter, info.file, fileAdded,
- hasCustomBuildStep))
+ if (outputFileConfig(d, xml, xmlFilter, info.file, fileAdded, hasCustomBuildStep))
fileAdded = true;
}