remove method no longer needed
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 26 Feb 2017 17:21:48 +0000 (18:21 +0100)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 26 Feb 2017 17:24:56 +0000 (18:24 +0100)
Editor::track_selection_changed() is now invoked by EditorRoutes::sync_treeview_from_presentation_info(),
AFTER the Selection has been updated

gtk2_ardour/editor.cc
gtk2_ardour/editor.h
gtk2_ardour/editor_routes.cc

index 351812aef419ff8c15a16a522ebb708075d873f7..3c41c2f49e5bacc0090ac2426153c7ab68ca5a71 100644 (file)
@@ -828,8 +828,6 @@ 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());
@@ -905,14 +903,6 @@ 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
 {
index d21cc4e1b0e222426bd24ae12b9690e1318f7eea..bca0bfae2f11fb0c3e68483d8c56545ceaf36dd6 100644 (file)
@@ -1839,8 +1839,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
 
        void setup_midi_toolbar ();
 
-       void presentation_info_changed (PBD::PropertyChange const &);
-
        /* selection process */
 
        Selection* selection;
index b1618bde49b12892daad4d100434d04bfc7f3c4b..2ed98cfad58d3132f9a89bf9a2d23667766fcf63 100644 (file)
@@ -1198,6 +1198,9 @@ EditorRoutes::sync_treeview_from_presentation_info (PropertyChange const & what_
 
                /* step two: set the Selection (for stripables/routes) */
                _editor->get_selection().set (tvl);
+
+               /* step three, tell the editor */
+               _editor->track_selection_changed ();
        }
 
        redisplay ();