1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 21:45:35 +00:00

Don't capture temporaries by reference

This commit is contained in:
Evil Eye 2023-03-20 19:07:51 +01:00
parent 3f19dc62e5
commit 47d75c70ea

View file

@ -53,7 +53,7 @@ QMenu & TableHeaderMouseEventHandler::createContextMenu()
action->setChecked(!table.isColumnHidden(i));
menu->addAction(action);
connect(action, &QAction::triggered, [this, &action, &i]() {
connect(action, &QAction::triggered, [this, action, i]() {
table.setColumnHidden(i, !action->isChecked());
action->setChecked(!action->isChecked());
action->toggle();