forked from qt-creator/qt-creator
CMakePM: Fix compile with Qt5.6
Broke with be376ae7.
Change-Id: I9c99a7be78c7ec0359cefee84e2e1877d20f25bf
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -398,7 +398,7 @@ QAction *CMakeBuildSettingsWidget::createForceAction(int type, const QModelIndex
|
||||
case ConfigModel::DataItem::UNKNOWN:
|
||||
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));
|
||||
connect(forceAction, &QAction::triggered,
|
||||
this, [this, idx, t]() { m_configModel->forceTo(idx, t); });
|
||||
|
||||
Reference in New Issue
Block a user