Skip to content
Snippets Groups Projects
Commit e4aa2b58 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Git: Do not fail to create checkout job


Do not fail to create checkout job when showing the configuration page.

Task-number: QTCREATORBUG-7082
Change-Id: I501cf9421f63b9ca4fa88f0d274624ff48117ced
Reviewed-by: default avatarChristian Stenger <christian.stenger@nokia.com>
parent ebaecead
No related branches found
No related tags found
No related merge requests found
......@@ -83,8 +83,14 @@ QSharedPointer<VcsBase::AbstractCheckoutJob> CloneWizard::createJob(const QList<
QString *checkoutPath)
{
// Collect parameters for the clone command.
const CloneWizardPage *cwp = qobject_cast<const CloneWizardPage *>(parameterPages.front());
QTC_ASSERT(cwp, return QSharedPointer<VcsBase::AbstractCheckoutJob>())
const CloneWizardPage *cwp = 0;
foreach (QWizardPage *wp, parameterPages) {
cwp = qobject_cast<const CloneWizardPage *>(wp);
if (cwp)
break;
}
QTC_ASSERT(cwp, return QSharedPointer<VcsBase::AbstractCheckoutJob>());
return cwp->createCheckoutJob(checkoutPath);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment