Don't capture temporaries by reference

depth-refraction
Evil Eye 2 years ago
parent b55313c08e
commit 6e33da6cfe

@ -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