Commit ebaecead authored by Tobias Hunger's avatar Tobias Hunger
Browse files

VCS: Handle missing checkout jobs



Handle missing checkout jobs in the checkout wizard.

Task-number: QTCREATORBUG-7082
Change-Id: I8c271ebba1edabb94b5795b2756d316324175151
Reviewed-by: default avatarChristian Stenger <christian.stenger@nokia.com>
parent 273d823e
......@@ -219,8 +219,7 @@ QString BaseCheckoutWizard::openProject(const QString &path, QString *errorMessa
void BaseCheckoutWizard::slotProgressPageShown()
{
const QSharedPointer<AbstractCheckoutJob> job = createJob(d->parameterPages, &(d->checkoutPath));
if (!job.isNull())
d->dialog->start(job);
d->dialog->start(job);
}
} // namespace VcsBase
......@@ -69,6 +69,11 @@ CheckoutProgressWizardPage::~CheckoutProgressWizardPage()
void CheckoutProgressWizardPage::start(const QSharedPointer<AbstractCheckoutJob> &job)
{
if (job.isNull()) {
ui->logPlainTextEdit->setPlainText(tr("No job running, please abort."));
return;
}
QTC_ASSERT(m_state != Running, return)
m_job = job;
connect(job.data(), SIGNAL(output(QString)), ui->logPlainTextEdit, SLOT(appendPlainText(QString)));
......
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