diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui index 177f639f..c75c8328 100644 --- a/forms/mainwindow.ui +++ b/forms/mainwindow.ui @@ -2734,6 +2734,9 @@ + + false + QComboBox::SizeAdjustPolicy::AdjustToContents diff --git a/src/editor.cpp b/src/editor.cpp index fb870dff..d02006cd 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -496,6 +496,8 @@ void Editor::configureEncounterJSON(QWidget *window) { QVBoxLayout *slotChoiceLayout = new QVBoxLayout; if (useGroups) { auto groupCombo = new NoScrollComboBox; + groupCombo->setEditable(false); + groupCombo->setMinimumContentsLength(10); connect(groupCombo, QOverload::of(&QComboBox::textActivated), [&tempFields, ¤tField, &updateTotal, index](QString newGroupName) { for (EncounterField &field : tempFields) { if (field.name == currentField.name) {