Fix (I think) some strange situations where ::get() on dialogs
[dcpomatic.git] / src / wx / content_version_dialog.cc
index 37c9cd416ae9353bc3ee4c4d8df8ced85339c7c5..876f4383855960c4fae4009f670eb83ef4c090c5 100644 (file)
@@ -24,6 +24,7 @@
 
 
 using std::string;
+using boost::optional;
 
 
 ContentVersionDialog::ContentVersionDialog (wxWindow* parent)
@@ -46,7 +47,7 @@ ContentVersionDialog::set (string r)
 }
 
 
-string
+optional<string>
 ContentVersionDialog::get () const
 {
        return wx_to_std(_version->GetValue());