mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 18:45:36 +00:00
Don't capture temporaries by reference
This commit is contained in:
parent
3f19dc62e5
commit
47d75c70ea
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue