Commit 0088aec7 authored by Tobias Hunger's avatar Tobias Hunger

Vcs: Clean up checkout wizard in case of failure

Change-Id: I5fd2fbb660035e610b6093b744fd04608a6fa3c0
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent dae8df05
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment