summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jfr_playoff/gui/frames/match.py2
-rw-r--r--jfr_playoff/gui/frames/team.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py
index 6f1ed26..f393585 100644
--- a/jfr_playoff/gui/frames/match.py
+++ b/jfr_playoff/gui/frames/match.py
@@ -123,7 +123,7 @@ class SwissSettingsFrame(RepeatableFrame):
(ttk.Separator(self, orient=tk.HORIZONTAL)).grid(
row=9, column=0, columnspan=6, sticky=tk.E+tk.W)
- self.fetchDBField.setOptions([])
+ self._onDBListChange()
self._setFields()
self._setPositionInfo()
diff --git a/jfr_playoff/gui/frames/team.py b/jfr_playoff/gui/frames/team.py
index f1ce7d1..ada8f24 100644
--- a/jfr_playoff/gui/frames/team.py
+++ b/jfr_playoff/gui/frames/team.py
@@ -163,8 +163,8 @@ class DBSelectionField(ttk.Entry):
self.insert(0, new_suggestion)
self.selection_range(len(prefix), tk.END)
return 'break'
- except tk.TclError:
- # no text selection
+ except (tk.TclError, ValueError):
+ # no text selection or selection was altered, ignore
pass
def _onChange(self, event):