diff options
author | Robin Gareus <robin@gareus.org> | 2018-12-08 23:39:50 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-12-08 23:39:50 +0100 |
commit | 2dc3c8b3650266eba09cf7fe53c39c6728d4d5b6 (patch) | |
tree | eae6b773692ed2b97ea9543c135415ad11d71e8c /gtk2_ardour/option_editor.cc | |
parent | 9004a0df7ae4d81fd6e08231e2fd896b082f3cfb (diff) |
Better version of 9ccc56e1625, implicit signal disconnect
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 3482f66980..c930254cbe 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -220,17 +220,12 @@ CheckOption::CheckOption (string const & i, string const & n, Glib::RefPtr<Gtk:: Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (_action); if (tact) { action_toggled (); - _callback_connection = tact->signal_toggled().connect (sigc::mem_fun (*this, &CheckOption::action_toggled)); + tact->signal_toggled().connect (sigc::mem_fun (*this, &CheckOption::action_toggled)); } _action->connect_property_changed ("sensitive", sigc::mem_fun (*this, &CheckOption::action_sensitivity_changed)); } -CheckOption::~CheckOption () -{ - _callback_connection.disconnect (); -} - void CheckOption::action_toggled () { |