diff --git a/src/analyzer/analyzercontainer.cpp b/src/analyzer/analyzercontainer.cpp index 76a3de882..f288e7316 100644 --- a/src/analyzer/analyzercontainer.cpp +++ b/src/analyzer/analyzercontainer.cpp @@ -236,6 +236,6 @@ void AnalyzerContainer::AddFramerate(const QString &name, const int framerate) { group_framerate_->addAction(action); framerate_list_ << framerate; action->setCheckable(true); - QObject::connect(action, &QAction::triggered, [this, framerate]() { ChangeFramerate(framerate); } ); + QObject::connect(action, &QAction::triggered, this, [this, framerate]() { ChangeFramerate(framerate); } ); } diff --git a/src/collection/collectionfilterwidget.cpp b/src/collection/collectionfilterwidget.cpp index 97ad87d83..8fbb58656 100644 --- a/src/collection/collectionfilterwidget.cpp +++ b/src/collection/collectionfilterwidget.cpp @@ -165,7 +165,7 @@ void CollectionFilterWidget::Init(CollectionModel *model) { QList filter_ages = filter_ages_.keys(); for (QAction *action : filter_ages) { int age = filter_ages_[action]; - QObject::connect(action, &QAction::triggered, [this, age]() { model_->SetFilterAge(age); } ); + QObject::connect(action, &QAction::triggered, this, [this, age]() { model_->SetFilterAge(age); } ); } // Load settings diff --git a/src/playlist/playlistheader.cpp b/src/playlist/playlistheader.cpp index e2e820a61..b26acd5a8 100644 --- a/src/playlist/playlistheader.cpp +++ b/src/playlist/playlistheader.cpp @@ -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); }); } diff --git a/src/smartplaylists/smartplaylistwizard.cpp b/src/smartplaylists/smartplaylistwizard.cpp index 86d434e91..a9d25985c 100644 --- a/src/smartplaylists/smartplaylistwizard.cpp +++ b/src/smartplaylists/smartplaylistwizard.cpp @@ -139,7 +139,7 @@ void SmartPlaylistWizard::AddPlugin(SmartPlaylistWizardPlugin *plugin) { type_page_->layout()->addWidget(radio_button); type_page_->layout()->addWidget(description); - QObject::connect(radio_button, &QRadioButton::clicked, [this, index]() { TypeChanged(index); }); + QObject::connect(radio_button, &QRadioButton::clicked, this, [this, index]() { TypeChanged(index); }); if (index == 0) { radio_button->setChecked(true);