summaryrefslogtreecommitdiff
path: root/src/wx/dcpomatic_choice.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-01-05 01:26:58 +0100
committerCarl Hetherington <cth@carlh.net>2024-01-05 17:06:21 +0100
commitcb330f076f72000d028b11e88702addb0a2ab480 (patch)
treef22b8a8bff9aacdfdf84d6b42665bf38bb502ec7 /src/wx/dcpomatic_choice.h
parent4de8ab2f8e67c50546e0bf49ab045cbdb6f0c4e2 (diff)
Add Choice::set_by_data().
Diffstat (limited to 'src/wx/dcpomatic_choice.h')
-rw-r--r--src/wx/dcpomatic_choice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wx/dcpomatic_choice.h b/src/wx/dcpomatic_choice.h
index e663c948d..dec0a3701 100644
--- a/src/wx/dcpomatic_choice.h
+++ b/src/wx/dcpomatic_choice.h
@@ -37,6 +37,7 @@ public:
void add(wxString const& entry, wxString const& data);
void add(std::string const& entry);
void set(int index);
+ void set_by_data(wxString const& data);
boost::optional<int> get() const;
boost::optional<wxString> get_data() const;