forked from qt-creator/qt-creator
Utils: Pass context object to lambda connections
Remove some unneeded lambda () brackets. Change-Id: I6b7e07cad8a240a7021c6ddacc84a971809ee717 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -45,7 +45,7 @@ void MinimizableInfoBars::createActions()
|
||||
auto action = new QAction(this);
|
||||
action->setToolTip(entry.text());
|
||||
action->setIcon(Icons::WARNING_TOOLBAR.pixmap());
|
||||
connect(action, &QAction::triggered, this, [this, id]() {
|
||||
connect(action, &QAction::triggered, this, [this, id] {
|
||||
setShowInInfoBar(id, true);
|
||||
updateInfo(id);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user