diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-11-22 20:46:59 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-11-22 20:48:24 +0100 |
| commit | e72a69ac2ebf24df05ba4b6de65bfa338a58b0ec (patch) | |
| tree | f9e1d4e78a2411e969e9a469db3a08f03b228d90 | |
| parent | 7981ff2fe80ec88954e0f3eb4ff3c6e634c872f6 (diff) | |
Fix failure to remove markers when the checkbox is unticked.
| -rw-r--r-- | src/wx/markers_dialog.cc | 8 |
1 files changed, 7 insertions, 1 deletions
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()); |
