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>
This commit is contained in:
Tobias Hunger
2015-01-20 14:46:10 +01:00
parent df1bbb07d1
commit 5460250281
7 changed files with 81 additions and 33 deletions

View File

@@ -54,8 +54,11 @@ CheckoutWizard::CheckoutWizard(const FileName &path, QWidget *parent) :
BaseCheckoutWizard(path, parent)
{
const Core::IVersionControl *vc = SubversionPlugin::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);