Commit 9b98df57 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Wizards: Fix duplicate list of VCS in last page.

Triggered by going back and forth.
Reviewed-by: dt
Task-number: QTCREATORBUG-1022
parent 8b0d9ce1
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment