From f0380b3df50ca48ad2f22b5e7d5544dc9fa30d61 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 20 Sep 2013 18:47:13 +0100 Subject: More various KDM fixes. --- src/wx/kdm_dialog.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/wx/kdm_dialog.cc') diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc index c8db016aa..c8212636a 100644 --- a/src/wx/kdm_dialog.cc +++ b/src/wx/kdm_dialog.cc @@ -26,7 +26,7 @@ #include "cinema_dialog.h" #include "screen_dialog.h" #include "wx_util.h" -#ifdef __WXMSW__ +#ifdef DCPOMATIC_USE_OWN_DIR_PICKER #include "dir_picker_ctrl.h" #else #include @@ -92,10 +92,10 @@ KDMDialog::KDMDialog (wxWindow* parent) add_label_to_sizer (table, this, "Write to", true); -#ifdef __WXMSW__ - _folder = new DirPickerCtrl (this); +#ifdef DCPOMATIC_USE_OWN_DIR_PICKER + _folder = new DirPickerCtrl (this); #else - _folder = new wxDirPickerCtrl (this, wxDD_DIR_MUST_EXIST); + _folder = new wxDirPickerCtrl (this, wxID_ANY); #endif table->Add (_folder, 1, wxEXPAND); @@ -176,6 +176,9 @@ KDMDialog::setup_sensitivity () _add_screen->Enable (sc); _edit_screen->Enable (ss); _remove_screen->Enable (ss); + + wxButton* ok = dynamic_cast (FindWindowById (wxID_OK)); + ok->Enable (sc || sc); } void -- cgit v1.2.3