summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-03-31 15:30:30 +0100
committerCarl Hetherington <cth@carlh.net>2014-03-31 15:30:30 +0100
commit06ecc10da0ddf93bef28d09a19e8176588185d6e (patch)
tree8cd02ab7a08e6937e1d8901d3c00ede977812009 /src
parentd344423f8a0e9765684f5e25a6ce4966a3da31d0 (diff)
Fix inability to create more than one KDM at once.
Diffstat (limited to 'src')
-rw-r--r--src/wx/kdm_dialog.cc2
1 files changed, 1 insertions, 1 deletions
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<wxButton *> (FindWindowById (wxID_OK));
- ok->Enable ((sc || ss) && sd);
+ ok->Enable ((selected_cinemas().size() > 0 || selected_screens().size() > 0) && sd);
_folder->Enable (_write_to->GetValue ());
}