summaryrefslogtreecommitdiff
path: root/src/wx/dcpomatic_choice.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/dcpomatic_choice.cc')
-rw-r--r--src/wx/dcpomatic_choice.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wx/dcpomatic_choice.cc b/src/wx/dcpomatic_choice.cc
index 5e5a1e257..f2e215439 100644
--- a/src/wx/dcpomatic_choice.cc
+++ b/src/wx/dcpomatic_choice.cc
@@ -83,6 +83,18 @@ Choice::add_entry(wxString const& entry, wxString const& data)
void
+Choice::set_entries(wxArrayString const& entries)
+{
+ if (GetStrings() == entries) {
+ return;
+ }
+
+ Clear();
+ Set(entries);
+}
+
+
+void
Choice::set(int index)
{
SetSelection(index);