From 4b7874391d8f1a7d77512ded2b0a47513ff92482 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 7 Feb 2024 14:18:13 +0200 Subject: [PATCH] kcms/tabbox: Update layout name in response to user input The current index can change when populating the combobox. --- src/kcms/tabbox/kwintabboxconfigform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kcms/tabbox/kwintabboxconfigform.cpp b/src/kcms/tabbox/kwintabboxconfigform.cpp index 30935edfa4..af31d98eac 100644 --- a/src/kcms/tabbox/kwintabboxconfigform.cpp +++ b/src/kcms/tabbox/kwintabboxconfigform.cpp @@ -60,8 +60,8 @@ KWinTabBoxConfigForm::KWinTabBoxConfigForm(TabboxType type, TabBoxSettings *conf connect(ui->orderMinimized, &QAbstractButton::clicked, this, &KWinTabBoxConfigForm::onOrderMinimizedMode); connect(ui->showDesktop, &QAbstractButton::clicked, this, &KWinTabBoxConfigForm::onShowDesktopMode); - connect(ui->switchingModeCombo, qOverload(&QComboBox::currentIndexChanged), this, &KWinTabBoxConfigForm::onSwitchingMode); - connect(ui->effectCombo, qOverload(&QComboBox::currentIndexChanged), this, &KWinTabBoxConfigForm::onEffectCombo); + connect(ui->switchingModeCombo, &QComboBox::activated, this, &KWinTabBoxConfigForm::onSwitchingMode); + connect(ui->effectCombo, &QComboBox::activated, this, &KWinTabBoxConfigForm::onEffectCombo); auto initShortcutWidget = [this](KKeySequenceWidget *widget, const char *name) { widget->setCheckActionCollections({m_shortcuts->actionCollection()});