Use 4arg connect
This commit is contained in:
@@ -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); });
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user