Jelajahi Sumber

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.
gxalpha 2 tahun lalu
induk
melakukan
6721154924
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      UI/window-basic-settings.cpp

+ 1 - 1
UI/window-basic-settings.cpp

@@ -333,7 +333,7 @@ void RestrictResetBitrates(initializer_list<QComboBox *> 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