summaryrefslogtreecommitdiff
path: root/src/wx/kdm_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-09 22:43:45 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-09 22:43:45 +0100
commitdd0e105978aa1fe725de990be98b4943a3beef03 (patch)
tree840440b0d0c33355df2665a60f80c1c1a9b3e18b /src/wx/kdm_dialog.cc
parentbf12d3841c020d2b0664cd04c1bfb3302651b6b6 (diff)
Search in the right window when using FindWindowById.
Diffstat (limited to 'src/wx/kdm_dialog.cc')
-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 3e6301482..8f4f8622d 100644
--- a/src/wx/kdm_dialog.cc
+++ b/src/wx/kdm_dialog.cc
@@ -273,7 +273,7 @@ KDMDialog::setup_sensitivity ()
_edit_screen->Enable (ss);
_remove_screen->Enable (ss);
- wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK));
+ wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
if (ok) {
ok->Enable ((selected_cinemas().size() > 0 || selected_screens().size() > 0) && sd);
}