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:46:59 +0100 |
| commit | 1ab712c195a59efc0961bb740b1fc47d80a023c0 (patch) | |
| tree | a490f55bd9422a82bfb81239be5ad087f8af6813 | |
| parent | 5262ef3dc8ba67b51ea6ce59136a2c4680796a06 (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()); |
