summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/route_processor_selection.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/route_processor_selection.cc b/gtk2_ardour/route_processor_selection.cc
index e66eaf959e..8975bf90bc 100644
--- a/gtk2_ardour/route_processor_selection.cc
+++ b/gtk2_ardour/route_processor_selection.cc
@@ -124,8 +124,8 @@ RouteProcessorSelection::remove (RouteUI* r)
RouteUISelection::iterator i;
if ((i = find (routes.begin(), routes.end(), r)) != routes.end()) {
- routes.erase (i);
(*i)->set_selected (false);
+ routes.erase (i);
if (!_no_route_change_signal) {
RoutesChanged ();
}