From ab50fc774b6129ed48106e5eeb5eefdcca4af524 Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 15 Apr 2020 09:26:19 +0200 Subject: [PATCH] SEBSERV-110 fix --- .../ch/ethz/seb/sebserver/gui/widget/SingleSelection.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/widget/SingleSelection.java b/src/main/java/ch/ethz/seb/sebserver/gui/widget/SingleSelection.java index 97c43eb5..d9eb875e 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/widget/SingleSelection.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/widget/SingleSelection.java @@ -53,6 +53,10 @@ public final class SingleSelection extends Combo implements Selection { @Override public void select(final String key) { + if (this.isEditable) { + super.setText(key); + return; + } final int selectionIndex = this.keyMapping.indexOf(key); if (selectionIndex < 0) { return;