summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/gui_combobox.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui_combobox.pas b/src/gui/gui_combobox.pas
index e98e49e1..25fb9981 100644
--- a/src/gui/gui_combobox.pas
+++ b/src/gui/gui_combobox.pas
@@ -336,7 +336,7 @@ begin
if SameText(FItems.Strings[i], AValue) then
begin
SetFocusItem(i+1); // our FocusItem is 1-based. TStringList is 0-based.
- Break;
+ Exit;
end;
end;
// if we get here, we didn't find a match