From 082d1d408fb5b503dc7b50dc97241c4ae794a753 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 2 Jan 2024 01:58:59 +0100 Subject: Observe CPL changing, so that (e.g.) Make KDM button becomes sensitive when selecting a screen and then choosing a CPL by browsing the filesystem (when there was no CPL previously selected). --- src/wx/self_dkdm_dialog.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wx/self_dkdm_dialog.cc') diff --git a/src/wx/self_dkdm_dialog.cc b/src/wx/self_dkdm_dialog.cc index c8587e7ee..4702557e7 100644 --- a/src/wx/self_dkdm_dialog.cc +++ b/src/wx/self_dkdm_dialog.cc @@ -123,6 +123,7 @@ SelfDKDMDialog::SelfDKDMDialog (wxWindow* parent, std::shared_ptr fi _internal->Bind (wxEVT_RADIOBUTTON, bind (&SelfDKDMDialog::dkdm_write_type_changed, this)); _write_to->Bind (wxEVT_RADIOBUTTON, bind (&SelfDKDMDialog::dkdm_write_type_changed, this)); + _cpl->Changed.connect(boost::bind(&SelfDKDMDialog::setup_sensitivity, this)); } -- cgit v1.2.3