summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2014-05-05 17:24:35 +0200
committerTobias Hunger <tobias.hunger@digia.com>2014-05-26 11:44:23 +0200
commit0088aec7bd4ece1aadfc17b0fa21167a9f37a43d (patch)
treedcecf7273bb8dec9ed1f35493b8b7f23762730a2 /src/plugins/vcsbase
parentdae8df056720afa8af1d9cdee51d4e89421e20c6 (diff)
downloadqt-creator-0088aec7bd4ece1aadfc17b0fa21167a9f37a43d.tar.gz
Vcs: Clean up checkout wizard in case of failure
Change-Id: I5fd2fbb660035e610b6093b744fd04608a6fa3c0 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/vcsbase')
-rw-r--r--src/plugins/vcsbase/basecheckoutwizardfactory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/basecheckoutwizardfactory.cpp b/src/plugins/vcsbase/basecheckoutwizardfactory.cpp
index 75a860659c..463502189a 100644
--- a/src/plugins/vcsbase/basecheckoutwizardfactory.cpp
+++ b/src/plugins/vcsbase/basecheckoutwizardfactory.cpp
@@ -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();