summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-01-28 11:16:50 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-01-28 11:16:50 +0100
commit8ca53c4497c6e1c3e18bec8c3338fbf6ce38c4f8 (patch)
tree054d54aae7606ce5aff4fb7ca63d003891d98aeb
parent5e76d8537b891de577815a57f36da45752a2dac4 (diff)
make editor respond to track seleciton change again
-rw-r--r--gtk2_ardour/editor.cc10
-rw-r--r--gtk2_ardour/editor.h6
2 files changed, 14 insertions, 2 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
{
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h
index 2cf7f569fb..8ff19580c6 100644
--- a/gtk2_ardour/editor.h
+++ b/gtk2_ardour/editor.h
@@ -366,8 +366,8 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
/* fades */
- void toggle_region_fades (int dir);
- void update_region_fade_visibility ();
+ void toggle_region_fades (int dir);
+ void update_region_fade_visibility ();
/* redirect shared ops menu. caller must free returned menu */
@@ -1830,6 +1830,8 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
void setup_midi_toolbar ();
+ void presentation_info_changed (PBD::PropertyChange const &);
+
/* selection process */
Selection* selection;