Fix CheckOption crash on session-reload
authorRobin Gareus <robin@gareus.org>
Sat, 8 Dec 2018 20:18:54 +0000 (21:18 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 8 Dec 2018 20:18:54 +0000 (21:18 +0100)
commit9ccc56e162554c292b25408246e3680b8f14eea7
tree0d30b6978eb59494e1faaaa794300f336e44e8dd
parent474d68c05132291fd8eb200006e7e63aebefdc8d
Fix CheckOption crash on session-reload

The ToggleAction has a lifetime of the UI, independent of the
CheckOption widget. The CheckOption needs to unsubscribe from the
signal_toggled() signal when it is deleted.

Also a CheckOption without a Action makes no sense. require _action
to be give at instantiation time.
gtk2_ardour/option_editor.cc
gtk2_ardour/option_editor.h