From 9b98df57b0153b6049d62df1f4e0c9a8e901b47d Mon Sep 17 00:00:00 2001
From: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Date: Thu, 1 Apr 2010 16:11:27 +0200
Subject: [PATCH] Wizards: Fix duplicate list of VCS in last page.

Triggered by going back and forth.
Reviewed-by: dt
Task-number: QTCREATORBUG-1022
---
 src/plugins/projectexplorer/projectfilewizardextension.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/projectexplorer/projectfilewizardextension.cpp b/src/plugins/projectexplorer/projectfilewizardextension.cpp
index c65aada6127..44836237893 100644
--- a/src/plugins/projectexplorer/projectfilewizardextension.cpp
+++ b/src/plugins/projectexplorer/projectfilewizardextension.cpp
@@ -233,6 +233,7 @@ void ProjectFileWizardExtension::initializeVersionControlChoices()
     // 1) Directory is managed and VCS supports "Add" -> List it
     // 2) Directory is managed and VCS does not support "Add" -> None available
     // 3) Directory is not managed -> Offer all VCS that support "CreateRepository"
+    m_context->versionControls.clear();
     if (!m_context->commonDirectory.isEmpty()) {
         Core::IVersionControl *managingControl = Core::ICore::instance()->vcsManager()->findVersionControlForDirectory(m_context->commonDirectory);
         if (managingControl) {
-- 
GitLab