Use 4arg connect

This commit is contained in:
Jonas Kvinge
2021-08-25 02:55:00 +02:00
parent 709a706853
commit 336c6cdd9d
4 changed files with 4 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ void PlaylistHeader::AddColumnAction(int index) {
action->setChecked(!isSectionHidden(index));
show_actions_ << action;
QObject::connect(action, &QAction::triggered, [this, index]() { ToggleVisible(index); });
QObject::connect(action, &QAction::triggered, this, [this, index]() { ToggleVisible(index); });
}