projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5262ef3
)
Fix failure to remove markers when the checkbox is unticked.
author
Carl Hetherington
<cth@carlh.net>
Mon, 22 Nov 2021 19:46:59 +0000
(20:46 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 22 Nov 2021 19:46:59 +0000
(20:46 +0100)
src/wx/markers_dialog.cc
patch
|
blob
|
history
diff --git
a/src/wx/markers_dialog.cc
b/src/wx/markers_dialog.cc
index 04a3b878c265de72880dc94dec1a1c3b71039ee3..205d44195e20a9c2aeb548c4e422ff264149ebe9 100644
(file)
--- 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));
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:
timecode->Changed.connect (bind(&Marker::changed, this));
}
private:
+ void checkbox_clicked ()
+ {
+ set_sensitivity ();
+ changed ();
+ }
+
void set_sensitivity ()
{
timecode->Enable (checkbox->GetValue());
void set_sensitivity ()
{
timecode->Enable (checkbox->GetValue());