summaryrefslogtreecommitdiff
path: root/src/wx/kdm_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-22 12:28:19 +0100
committerCarl Hetherington <cth@carlh.net>2016-04-22 12:28:19 +0100
commit8031edf0ce27b75727438e504128448b0884b426 (patch)
treec1de0021c11575bd0da5829d24c2cc6701c57da9 /src/wx/kdm_dialog.cc
parent450063921e66534da362ac5dab08ff9d67e2bdbe (diff)
Disallow KDM until times being before from times (#821).
Diffstat (limited to 'src/wx/kdm_dialog.cc')
-rw-r--r--src/wx/kdm_dialog.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc
index 5874dea54..856808f11 100644
--- a/src/wx/kdm_dialog.cc
+++ b/src/wx/kdm_dialog.cc
@@ -95,6 +95,7 @@ KDMDialog::KDMDialog (wxWindow* parent, boost::shared_ptr<const Film> film)
/* Bind */
_screens->ScreensChanged.connect (boost::bind (&KDMDialog::setup_sensitivity, this));
+ _timing->TimingChanged.connect (boost::bind (&KDMDialog::setup_sensitivity, this));
setup_sensitivity ();
@@ -113,7 +114,7 @@ KDMDialog::setup_sensitivity ()
wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
if (ok) {
- ok->Enable (!_screens->screens().empty() && sd);
+ ok->Enable (!_screens->screens().empty() && _timing->valid() && sd);
}
}