remove method no longer needed

Editor::track_selection_changed() is now invoked by EditorRoutes::sync_treeview_from_presentation_info(),
AFTER the Selection has been updated
This commit is contained in:
Paul Davis 2017-02-26 18:21:48 +01:00
parent 5456fd5717
commit f64441aa58
3 changed files with 3 additions and 12 deletions

View 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
{

View 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;

View 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 ();