VCS: Use the configuration page in all the checkout wizards

Task-number: QTCREATORBUG-3752
This commit is contained in:
Tobias Hunger
2011-04-20 15:49:06 +02:00
parent b520f184d3
commit cceb0adbaa
13 changed files with 52 additions and 19 deletions

View File

@@ -35,10 +35,10 @@
#include "mercurialplugin.h"
#include "mercurialsettings.h"
#include <coreplugin/iversioncontrol.h>
#include <vcsbase/checkoutjobs.h>
#include <vcsbase/vcsbaseconstants.h>
#include <QtCore/QDebug>
#include <vcsbase/vcsconfigurationpage.h>
using namespace Mercurial::Internal;
@@ -67,9 +67,12 @@ QString CloneWizard::displayName() const
QList<QWizardPage*> CloneWizard::createParameterPages(const QString &path)
{
QList<QWizardPage*> wizardPageList;
const Core::IVersionControl *vc = MercurialPlugin::instance()->versionControl();
if (!vc->isConfigured())
wizardPageList.append(new VCSBase::VcsConfigurationPage(vc));
CloneWizardPage *page = new CloneWizardPage;
page->setPath(path);
wizardPageList.push_back(page);
wizardPageList.append(page);
return wizardPageList;
}