projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add Choice::set_entries().
[dcpomatic.git]
/
src
/
wx
/
dcpomatic_choice.cc
diff --git
a/src/wx/dcpomatic_choice.cc
b/src/wx/dcpomatic_choice.cc
index 5e5a1e2575444dfa4dc0361b9ef3d6c2ce8c10b4..f2e215439ebe26833e879c45f4794731df900317 100644
(file)
--- a/
src/wx/dcpomatic_choice.cc
+++ b/
src/wx/dcpomatic_choice.cc
@@
-82,6
+82,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)
{