summaryrefslogtreecommitdiff
path: root/src/plugins/cvs
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/cvs
parentdf1bbb07d19a040ba4b61488bdcc3482fc40239e (diff)
downloadqt-creator-54602502810da9ec8b3b1764b57ee8a006f21845.tar.gz
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/cvs')
-rw-r--r--src/plugins/cvs/checkoutwizard.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/cvs/checkoutwizard.cpp b/src/plugins/cvs/checkoutwizard.cpp
index e5cbaeebb2..c06243a111 100644
--- a/src/plugins/cvs/checkoutwizard.cpp
+++ b/src/plugins/cvs/checkoutwizard.cpp
@@ -51,8 +51,11 @@ CheckoutWizard::CheckoutWizard(const Utils::FileName &path, QWidget *parent) :
BaseCheckoutWizard(path, parent)
{
const Core::IVersionControl *vc = CvsPlugin::instance()->versionControl();
- if (!vc->isConfigured())
- addPage(new VcsConfigurationPage(vc));
+ if (!vc->isConfigured()) {
+ VcsConfigurationPage *configPage = new VcsConfigurationPage;
+ configPage->setVersionControl(vc);
+ addPage(configPage);
+ }
CheckoutWizardPage *cwp = new CheckoutWizardPage;
cwp->setPath(path.toString());
addPage(cwp);