Merge branch 'cstemprefs' into 'master'

Don't capture temporaries by reference

Closes #7285

See merge request OpenMW/openmw!2844
depth-refraction
psi29a 2 years ago
commit ffe0e01dfc

@ -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…
Cancel
Save