diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-28 11:16:50 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-28 11:16:50 +0100 |
commit | 8ca53c4497c6e1c3e18bec8c3338fbf6ce38c4f8 (patch) | |
tree | 054d54aae7606ce5aff4fb7ca63d003891d98aeb /gtk2_ardour/editor.cc | |
parent | 5e76d8537b891de577815a57f36da45752a2dac4 (diff) |
make editor respond to track seleciton change again
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index c9dab0a0e5..62ad00a1d9 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -828,6 +828,8 @@ Editor::Editor () BasicUI::AccessAction.connect (*this, invalidator (*this), boost::bind (&Editor::access_action, this, _1, _2), gui_context()); + PresentationInfo::Change.connect (*this, invalidator (*this), boost::bind (&Editor::presentation_info_changed, this, _1), gui_context()); + /* handle escape */ ARDOUR_UI::instance()->Escape.connect (*this, invalidator (*this), boost::bind (&Editor::escape, this), gui_context()); @@ -906,6 +908,14 @@ Editor::~Editor() } } +void +Editor::presentation_info_changed (PropertyChange const & what_changed) +{ + if (what_changed.contains (Properties::selected)) { + track_selection_changed (); + } +} + XMLNode* Editor::button_settings () const { |