diff options
Diffstat (limited to 'src/qtwizard/DesignerWizard.cs')
-rw-r--r-- | src/qtwizard/DesignerWizard.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/qtwizard/DesignerWizard.cs b/src/qtwizard/DesignerWizard.cs index a5e48660..946e2fbe 100644 --- a/src/qtwizard/DesignerWizard.cs +++ b/src/qtwizard/DesignerWizard.cs @@ -46,11 +46,6 @@ namespace QtProjectWizard { public void BeforeOpeningFile(ProjectItem projectItem) { - if (projectItem.FileCount >= 1) { - var qtProject = QtProject.Create(projectItem.ContainingProject); - for (short i = 0; i < projectItem.FileCount; ++i) - qtProject.AdjustWhitespace(projectItem.FileNames[i]); - } } public void ProjectFinishedGenerating(Project project) @@ -101,6 +96,9 @@ namespace QtProjectWizard qtProject.AddFileToProject(data.PluginClass.ToLower() + @".json", Filters.OtherFiles()); + foreach (VCFile file in (IVCCollection) qtProject.VCProject.Files) + qtProject.AdjustWhitespace(file.FullPath); + qtProject.SetQtEnvironment(qtVersion); qtProject.Finish(); // Collapses all project nodes. } |