summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_routes.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-05-08 10:31:59 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-05-08 10:40:27 +0100
commitd51049f3433322f3bfff4140c95a843f4a3befab (patch)
treed3bd27ccce933d6042ade18a1a952763652be20f /gtk2_ardour/editor_routes.cc
parenteb133dd93473b14400279363302a2143b62a7f81 (diff)
when a Route is removed, don't bother triggering a sync-presentation-info-from-treeview because it isn't necessary
Diffstat (limited to 'gtk2_ardour/editor_routes.cc')
-rw-r--r--gtk2_ardour/editor_routes.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc
index 059439befe..365dd8d9ef 100644
--- a/gtk2_ardour/editor_routes.cc
+++ b/gtk2_ardour/editor_routes.cc
@@ -876,6 +876,8 @@ EditorRoutes::route_removed (TimeAxisView *tv)
TreeModel::Children rows = _model->children();
TreeModel::Children::iterator ri;
+ PBD::Unwinder<bool> uw (_ignore_selection_change, true);
+
for (ri = rows.begin(); ri != rows.end(); ++ri) {
if ((*ri)[_columns.tv] == tv) {
PBD::Unwinder<bool> uw (_route_deletion_in_progress, true);
@@ -883,10 +885,6 @@ EditorRoutes::route_removed (TimeAxisView *tv)
break;
}
}
-
- /* the deleted signal for the treeview/model will take
- care of any updates.
- */
}
void