Commit e0cd0532 authored by Milian Wolff's avatar Milian Wolff
Browse files

Gracefully handle the error case of no job being created

CCBUG: 278252
parent 601bbfe4
......@@ -132,7 +132,6 @@ VcsJob* ProjectSourcePage::jobPerCurrent()
} else if(m_providerWidget) {
job=m_providerWidget->createWorkingCopy(url);
}
Q_ASSERT(job);
return job;
}
......@@ -149,6 +148,9 @@ void ProjectSourcePage::getVcsProject()
}
VcsJob* job=jobPerCurrent();
if (!job) {
return;
}
m_ui->sources->setEnabled(false);
m_ui->sourceBox->setEnabled(false);
......
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