Give a better error if the user tries to load a non-KDM as a DKDM into the KDM creator.
[dcpomatic.git] / src / wx / file_dialog_wrapper.h
index 251d1b71d15711462cd0be9cee6a0f038bbb6c9a..dd63ff2dae447bfdaccd6a9842e0f02092fd8d20 100644 (file)
@@ -32,7 +32,7 @@ public:
 
        void set (T) {}
 
-       T get ()
+       boost::optional<T> get ()
        {
                return T (dcp::file_to_string (wx_to_std (_dialog->GetPath ())));
        }
@@ -49,7 +49,7 @@ public:
                delete this;
        }
 
-private:
+protected:
        wxWindow* _parent;
        wxFileDialog* _dialog;
 };