mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 15:45:35 +00:00
Merge branch 'cstemprefs' into 'master'
Don't capture temporaries by reference Closes #7285 See merge request OpenMW/openmw!2844
This commit is contained in:
commit
ffe0e01dfc
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ namespace CSVWorld
|
|||
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