diff --git a/src/widgets/settingspages/GeneralPageView.hpp b/src/widgets/settingspages/GeneralPageView.hpp index 5a295ff93..6ce83c5b7 100644 --- a/src/widgets/settingspages/GeneralPageView.hpp +++ b/src/widgets/settingspages/GeneralPageView.hpp @@ -172,13 +172,11 @@ public: this->managedConnections_); QObject::connect( - combo, - QOverload::of(&QComboBox::currentIndexChanged), - // &QComboBox::editTextChanged, + combo, QOverload::of(&QComboBox::currentIndexChanged), [combo, &setting, - setValue = std::move(setValue)](const QString &newValue) { - setting = setValue( - DropdownArgs{newValue, combo->currentIndex(), combo}); + setValue = std::move(setValue)](const int newIndex) { + setting = setValue(DropdownArgs{combo->itemText(newIndex), + combo->currentIndex(), combo}); getApp()->windows->forceLayoutChannelViews(); });