Skip to content
Snippets Groups Projects
Commit adedc156 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

VCS: Do not increase the number of VCSes in ProjectLoadWizard

Do not increase the number of VCSes by readding the same entries when going
back/next on the summary page of the project load wizard.

Task-number: QTCREATORBUG-5519
Change-Id: I60058cf2060fae4e5703e77fe97a727108bbc8c8
Reviewed-on: http://codereview.qt.nokia.com/2283


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarRobert Löhning <robert.loehning@nokia.com>
parent fe3f0811
No related branches found
No related tags found
No related merge requests found
......@@ -302,9 +302,11 @@ void ProjectFileWizardExtension::firstExtensionPageShown(
}
// Store all version controls for later use:
foreach (Core::IVersionControl *vc, ExtensionSystem::PluginManager::instance()->getObjects<Core::IVersionControl>()) {
m_context->versionControls.append(vc);
connect(vc, SIGNAL(configurationChanged()), this, SLOT(initializeVersionControlChoices()));
if (m_context->versionControls.isEmpty()) {
foreach (Core::IVersionControl *vc, ExtensionSystem::PluginManager::instance()->getObjects<Core::IVersionControl>()) {
m_context->versionControls.append(vc);
connect(vc, SIGNAL(configurationChanged()), this, SLOT(initializeVersionControlChoices()));
}
}
initializeVersionControlChoices();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment