Use 4arg connect

This commit is contained in:
Jonas Kvinge
2021-08-25 03:08:30 +02:00
parent 0b15e29324
commit 46bd5b42fa
2 changed files with 2 additions and 2 deletions

View File

@@ -708,7 +708,7 @@ void FancyTabWidget::addMenuItem(QActionGroup *group, const QString &text, Mode
QAction *action = group->addAction(text);
action->setCheckable(true);
QObject::connect(action, &QAction::triggered, [this, mode]() { SetMode(mode); });
QObject::connect(action, &QAction::triggered, this, [this, mode]() { SetMode(mode); });
if (mode == mode_) action->setChecked(true);