X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fscreen_dialog.cc;h=e312af9205b1dc24ebf940b14e520d957c847463;hb=aeb835a18c8df347e0ed68fb24631b320abeb611;hp=66e37a4cf94d58225b199fa8a88cef93fe19de22;hpb=1858190cff2f960f3d1f0a5cc02c69da86088f5b;p=dcpomatic.git diff --git a/src/wx/screen_dialog.cc b/src/wx/screen_dialog.cc index 66e37a4cf..e312af920 100644 --- a/src/wx/screen_dialog.cc +++ b/src/wx/screen_dialog.cc @@ -33,7 +33,7 @@ using std::cout; using boost::optional; ScreenDialog::ScreenDialog (wxWindow* parent, string title, string name, optional certificate) - : TableDialog (parent, std_to_wx (title), 2, true) + : TableDialog (parent, std_to_wx (title), 2, 1, true) , _certificate (certificate) { add (_("Name"), true); @@ -93,7 +93,7 @@ ScreenDialog::load_certificate (boost::filesystem::path file) _certificate = dcp::Certificate (dcp::file_to_string (file)); _certificate_text->SetValue (_certificate->certificate ()); } catch (dcp::MiscError& e) { - error_dialog (this, wxString::Format (_("Could not read certificate file (%s)"), e.what())); + error_dialog (this, wxString::Format (_("Could not read certificate file (%s)"), std_to_wx(e.what()).data())); } } @@ -130,7 +130,7 @@ ScreenDialog::setup_sensitivity () { wxButton* ok = dynamic_cast (FindWindowById (wxID_OK, this)); if (ok) { - ok->Enable (_certificate); + ok->Enable (static_cast(_certificate)); } _download_certificate->Enable (