We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90278e1 commit a5e1f69Copy full SHA for a5e1f69
src/lib/configwidgetslib/impage.cpp
@@ -205,8 +205,20 @@ void IMPage::selectedGroupChanged() {
205
QMessageBox::question(this, _("Current group changed"),
206
_("Do you want to change group? Changes to "
207
"current group will be lost!"))) {
208
+ // Temporarily disconnect the signal
209
+ QMetaObject::Connection connection = disconnect(
210
+ ui_->inputMethodGroupComboBox, &QComboBox::currentTextChanged,
211
+ this, &IMPage::selectedGroupChanged);
212
+
213
ui_->inputMethodGroupComboBox->setCurrentText(
214
config_->currentGroup());
215
216
+ // Restore the connection
217
+ if (connection) {
218
+ connect(ui_->inputMethodGroupComboBox,
219
+ &QComboBox::currentTextChanged, this,
220
+ &IMPage::selectedGroupChanged);
221
+ }
222
return;
223
}
224
0 commit comments