Commit bf5bc72b authored by Christian Stenger's avatar Christian Stenger

CMakePM: Fix compile with Qt5.6

Broke with be376ae7.

Change-Id: I9c99a7be78c7ec0359cefee84e2e1877d20f25bf
Reviewed-by: default avatarAndré Hartmann <aha_1980@gmx.de>
parent 50581683
...@@ -398,7 +398,7 @@ QAction *CMakeBuildSettingsWidget::createForceAction(int type, const QModelIndex ...@@ -398,7 +398,7 @@ QAction *CMakeBuildSettingsWidget::createForceAction(int type, const QModelIndex
case ConfigModel::DataItem::UNKNOWN: case ConfigModel::DataItem::UNKNOWN:
return nullptr; return nullptr;
} }
QAction *forceAction = new QAction(tr("Force to %1").arg(typeString)); QAction *forceAction = new QAction(tr("Force to %1").arg(typeString), nullptr);
forceAction->setEnabled(m_configModel->canForceTo(idx, t)); forceAction->setEnabled(m_configModel->canForceTo(idx, t));
connect(forceAction, &QAction::triggered, connect(forceAction, &QAction::triggered,
this, [this, idx, t]() { m_configModel->forceTo(idx, t); }); this, [this, idx, t]() { m_configModel->forceTo(idx, t); });
......
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