From e72a69ac2ebf24df05ba4b6de65bfa338a58b0ec Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 22 Nov 2021 20:46:59 +0100 Subject: [PATCH] Fix failure to remove markers when the checkbox is unticked. --- src/wx/markers_dialog.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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()); -- 2.30.2