Search in the right window when using FindWindowById.
[dcpomatic.git] / src / wx / kdm_dialog.cc
index 3e630148268bfee9f7a7807a901eb67f2d0dcc04..8f4f8622df0ca3dd93c43b7e326b2e93d97a4367 100644 (file)
@@ -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);
        }