From 67211549249b0a8c4d93fd0ff3e3d062f16c6028 Mon Sep 17 00:00:00 2001 From: gxalpha Date: Sat, 12 Aug 2023 18:27:43 +0200 Subject: [PATCH] UI: Use QCheckBox::toggled signal for checkbox changes Like in 4f8b17d61, "toggled" is the signal that listens for changes however they may have happened (including through things like accessibility software), whereas clicked only is emitted on mouse clicks. We should react to any kind of change, whatever prompted it. --- UI/window-basic-settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/window-basic-settings.cpp b/UI/window-basic-settings.cpp index 94416340b..0bb53c155 100644 --- a/UI/window-basic-settings.cpp +++ b/UI/window-basic-settings.cpp @@ -333,7 +333,7 @@ void RestrictResetBitrates(initializer_list boxes, int maxbitrate); #define COMBO_CHANGED &QComboBox::currentIndexChanged #define EDIT_CHANGED &QLineEdit::textChanged #define CBEDIT_CHANGED &QComboBox::editTextChanged -#define CHECK_CHANGED &QCheckBox::clicked +#define CHECK_CHANGED &QCheckBox::toggled #define GROUP_CHANGED &QGroupBox::toggled #define SCROLL_CHANGED &QSpinBox::valueChanged #define DSCROLL_CHANGED &QDoubleSpinBox::valueChanged