Merge branch 'master' into 1.0
[dcpomatic.git] / src / wx / wx_util.cc
index 3dad6e7fd84ea455edc398bd391207ee2c2ecad0..e0d7d843ff51fb31f06881592e670f3adab6dbce 100644 (file)
@@ -63,6 +63,16 @@ error_dialog (wxWindow* parent, wxString m)
        d->Destroy ();
 }
 
+bool
+confirm_dialog (wxWindow* parent, wxString m)
+{
+       wxMessageDialog* d = new wxMessageDialog (parent, m, _("DVD-o-matic"), wxYES_NO | wxICON_QUESTION);
+       int const r = d->ShowModal ();
+       d->Destroy ();
+       return r == wxID_YES;
+}
+       
+
 /** @param s wxWidgets string.
  *  @return Corresponding STL string.
  */