Vcs: Clean up checkout wizard in case of failure

Change-Id: I5fd2fbb660035e610b6093b744fd04608a6fa3c0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2014-05-05 17:24:35 +02:00
parent dae8df0567
commit 0088aec7bd

View File

@@ -112,8 +112,10 @@ void BaseCheckoutWizardFactory::runWizard(const QString &path, QWidget *parent,
d->wizard = create(d->parameterPages, parent);
connect(d->wizard, SIGNAL(progressPageShown()), this, SLOT(slotProgressPageShown()));
d->wizard->setWindowTitle(displayName());
if (d->wizard->exec() != QDialog::Accepted)
if (d->wizard->exec() != QDialog::Accepted) {
d->clear();
return;
}
// Now try to find the project file and open
const QString checkoutPath = d->checkoutPath;
d->clear();