Remove Cruft
This commit is contained in:
parent
c02a3413e1
commit
f77540120c
|
@ -1007,8 +1007,6 @@ EditorRoutes::sync_presentation_info_from_treeview ()
|
||||||
bool change = false;
|
bool change = false;
|
||||||
PresentationInfo::order_t order = 0;
|
PresentationInfo::order_t order = 0;
|
||||||
|
|
||||||
TreeOrderKeys sorted;
|
|
||||||
|
|
||||||
PresentationInfo::ChangeSuspender cs;
|
PresentationInfo::ChangeSuspender cs;
|
||||||
|
|
||||||
for (ri = rows.begin(); ri != rows.end(); ++ri) {
|
for (ri = rows.begin(); ri != rows.end(); ++ri) {
|
||||||
|
@ -1028,8 +1026,6 @@ EditorRoutes::sync_presentation_info_from_treeview ()
|
||||||
stripable->set_presentation_order (order);
|
stripable->set_presentation_order (order);
|
||||||
change = true;
|
change = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
sorted.push_back (TreeOrderKey (order, stripable));
|
|
||||||
++order;
|
++order;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1116,18 +1112,12 @@ EditorRoutes::sync_treeview_from_presentation_info (PropertyChange const & what_
|
||||||
* already updated itself.
|
* already updated itself.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
TrackViewList tvl;
|
|
||||||
PBD::Unwinder<bool> uw (_ignore_selection_change, true);
|
PBD::Unwinder<bool> uw (_ignore_selection_change, true);
|
||||||
|
|
||||||
/* set the treeview model selection state */
|
/* set the treeview model selection state */
|
||||||
|
|
||||||
for (TreeModel::Children::iterator ri = rows.begin(); ri != rows.end(); ++ri) {
|
for (TreeModel::Children::iterator ri = rows.begin(); ri != rows.end(); ++ri) {
|
||||||
boost::shared_ptr<Stripable> stripable = (*ri)[_columns.stripable];
|
boost::shared_ptr<Stripable> stripable = (*ri)[_columns.stripable];
|
||||||
if (stripable && stripable->is_selected()) {
|
if (stripable && stripable->is_selected()) {
|
||||||
TimeAxisView* tav = (*ri)[_columns.tv];
|
|
||||||
if (tav) {
|
|
||||||
tvl.push_back (tav);
|
|
||||||
}
|
|
||||||
_display.get_selection()->select (*ri);
|
_display.get_selection()->select (*ri);
|
||||||
} else {
|
} else {
|
||||||
_display.get_selection()->unselect (*ri);
|
_display.get_selection()->unselect (*ri);
|
||||||
|
|
|
@ -1019,10 +1019,6 @@ Editor::presentation_info_changed (PropertyChange const & what_changed)
|
||||||
/* STEP 2: update TimeAxisView's knowledge of their selected state
|
/* STEP 2: update TimeAxisView's knowledge of their selected state
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
PropertyChange pc;
|
|
||||||
pc.add (Properties::selected);
|
|
||||||
|
|
||||||
if (what_changed.contains (Properties::selected)) {
|
if (what_changed.contains (Properties::selected)) {
|
||||||
|
|
||||||
StripableNotificationListPtr stripables (new StripableNotificationList);
|
StripableNotificationListPtr stripables (new StripableNotificationList);
|
||||||
|
|
|
@ -716,9 +716,6 @@ Mixer_UI::sync_presentation_info_from_treeview ()
|
||||||
|
|
||||||
PresentationInfo::order_t master_key = _session->master_order_key ();
|
PresentationInfo::order_t master_key = _session->master_order_key ();
|
||||||
PresentationInfo::order_t order = 0;
|
PresentationInfo::order_t order = 0;
|
||||||
uint32_t count = 0;
|
|
||||||
|
|
||||||
TreeOrderKeys sorted;
|
|
||||||
|
|
||||||
PresentationInfo::ChangeSuspender cs;
|
PresentationInfo::ChangeSuspender cs;
|
||||||
|
|
||||||
|
@ -752,10 +749,7 @@ Mixer_UI::sync_presentation_info_from_treeview ()
|
||||||
stripable->set_presentation_order (order);
|
stripable->set_presentation_order (order);
|
||||||
change = true;
|
change = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
sorted.push_back (TreeOrderKey (count, stripable));
|
|
||||||
++order;
|
++order;
|
||||||
++count;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
change |= _session->ensure_stripable_sort_order ();
|
change |= _session->ensure_stripable_sort_order ();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user