forked from qt-creator/qt-creator
Vcs: Clean up checkout wizard in case of failure
Change-Id: I5fd2fbb660035e610b6093b744fd04608a6fa3c0 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user