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:
parent
5456fd5717
commit
f64441aa58
|
@ -828,8 +828,6 @@ Editor::Editor ()
|
||||||
|
|
||||||
BasicUI::AccessAction.connect (*this, invalidator (*this), boost::bind (&Editor::access_action, this, _1, _2), gui_context());
|
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 */
|
/* handle escape */
|
||||||
|
|
||||||
ARDOUR_UI::instance()->Escape.connect (*this, invalidator (*this), boost::bind (&Editor::escape, this), gui_context());
|
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*
|
XMLNode*
|
||||||
Editor::button_settings () const
|
Editor::button_settings () const
|
||||||
{
|
{
|
||||||
|
|
|
@ -1839,8 +1839,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
||||||
|
|
||||||
void setup_midi_toolbar ();
|
void setup_midi_toolbar ();
|
||||||
|
|
||||||
void presentation_info_changed (PBD::PropertyChange const &);
|
|
||||||
|
|
||||||
/* selection process */
|
/* selection process */
|
||||||
|
|
||||||
Selection* selection;
|
Selection* selection;
|
||||||
|
|
|
@ -1198,6 +1198,9 @@ EditorRoutes::sync_treeview_from_presentation_info (PropertyChange const & what_
|
||||||
|
|
||||||
/* step two: set the Selection (for stripables/routes) */
|
/* step two: set the Selection (for stripables/routes) */
|
||||||
_editor->get_selection().set (tvl);
|
_editor->get_selection().set (tvl);
|
||||||
|
|
||||||
|
/* step three, tell the editor */
|
||||||
|
_editor->track_selection_changed ();
|
||||||
}
|
}
|
||||||
|
|
||||||
redisplay ();
|
redisplay ();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user