forked from qt-creator/qt-creator
QbsProjectManager: Fix crash at project closing
The QbsProjectParser was mistakenly made the parent object of the qbs build job. Task-number: QTCREATORBUG-16273 Change-Id: I8e0f9736ac9d92c5c1fe3d82430532358b78fee4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Christian Kandeler
parent
6a52c34055
commit
6d4b944683
@@ -158,7 +158,7 @@ void QbsProjectParser::startRuleExecution()
|
|||||||
options.setDryRun(m_dryRun);
|
options.setDryRun(m_dryRun);
|
||||||
options.setExecuteRulesOnly(true);
|
options.setExecuteRulesOnly(true);
|
||||||
m_ruleExecutionJob = m_project.buildAllProducts(
|
m_ruleExecutionJob = m_project.buildAllProducts(
|
||||||
options, qbs::Project::ProductSelectionWithNonDefault, this);
|
options, qbs::Project::ProductSelectionWithNonDefault, nullptr);
|
||||||
connect(m_ruleExecutionJob, &qbs::AbstractJob::finished,
|
connect(m_ruleExecutionJob, &qbs::AbstractJob::finished,
|
||||||
this, &QbsProjectParser::handleRuleExecutionDone);
|
this, &QbsProjectParser::handleRuleExecutionDone);
|
||||||
connect(m_ruleExecutionJob, &qbs::AbstractJob::taskStarted,
|
connect(m_ruleExecutionJob, &qbs::AbstractJob::taskStarted,
|
||||||
|
|||||||
Reference in New Issue
Block a user