forked from qt-creator/qt-creator
VCS: Use the configuration page in all the checkout wizards
Task-number: QTCREATORBUG-3752
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user