aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/mercurial
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-01-20 14:46:10 +0100
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-01-21 12:24:11 +0100
commit54602502810da9ec8b3b1764b57ee8a006f21845 (patch)
tree875f86f3e781ebc1fdac10e4674d07eea640d6fe /src/plugins/mercurial
parentdf1bbb07d19a040ba4b61488bdcc3482fc40239e (diff)
VcsBase: Make VcsConfiguration page more dynamic
... again making it more useful for the JSON wizard Change-Id: Ic7a454c4efc93eb48a44ab2a37ecd39f8c6f3ba7 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/mercurial')
-rw-r--r--src/plugins/mercurial/clonewizard.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/mercurial/clonewizard.cpp b/src/plugins/mercurial/clonewizard.cpp
index 339bc244bd..9648b7310a 100644
--- a/src/plugins/mercurial/clonewizard.cpp
+++ b/src/plugins/mercurial/clonewizard.cpp
@@ -53,8 +53,11 @@ CloneWizard::CloneWizard(const Utils::FileName &path, QWidget *parent) :
setStartedStatus(tr("Cloning started..."));
const Core::IVersionControl *vc = MercurialPlugin::instance()->versionControl();
- if (!vc->isConfigured())
- addPage(new VcsConfigurationPage(vc));
+ if (!vc->isConfigured()) {
+ VcsConfigurationPage *configPage = new VcsConfigurationPage;
+ configPage->setVersionControl(vc);
+ addPage(configPage);
+ }
CloneWizardPage *page = new CloneWizardPage;
page->setPath(path.toString());
addPage(page);