From: Carl Hetherington Date: Mon, 22 Nov 2021 19:46:59 +0000 (+0100) Subject: Fix failure to remove markers when the checkbox is unticked. X-Git-Tag: v2.15.177~1 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=e72a69ac2ebf24df05ba4b6de65bfa338a58b0ec Fix failure to remove markers when the checkbox is unticked. --- diff --git a/src/wx/markers_dialog.cc b/src/wx/markers_dialog.cc index 04a3b878c..205d44195 100644 --- a/src/wx/markers_dialog.cc +++ b/src/wx/markers_dialog.cc @@ -69,11 +69,17 @@ public: set_sensitivity (); set_button->Bind (wxEVT_BUTTON, bind(&Marker::set, this)); - checkbox->Bind (wxEVT_CHECKBOX, bind(&Marker::set_sensitivity, this)); + checkbox->Bind (wxEVT_CHECKBOX, bind(&Marker::checkbox_clicked, this)); timecode->Changed.connect (bind(&Marker::changed, this)); } private: + void checkbox_clicked () + { + set_sensitivity (); + changed (); + } + void set_sensitivity () { timecode->Enable (checkbox->GetValue());