From: Carl Hetherington Date: Mon, 31 Mar 2014 14:30:30 +0000 (+0100) Subject: Fix inability to create more than one KDM at once. X-Git-Tag: v2.0.48~551^2~264 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=06ecc10da0ddf93bef28d09a19e8176588185d6e;p=dcpomatic.git Fix inability to create more than one KDM at once. --- diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc index 0336d0cb7..5fb031324 100644 --- a/src/wx/kdm_dialog.cc +++ b/src/wx/kdm_dialog.cc @@ -222,7 +222,7 @@ KDMDialog::setup_sensitivity () _remove_screen->Enable (ss); wxButton* ok = dynamic_cast (FindWindowById (wxID_OK)); - ok->Enable ((sc || ss) && sd); + ok->Enable ((selected_cinemas().size() > 0 || selected_screens().size() > 0) && sd); _folder->Enable (_write_to->GetValue ()); }