summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_processor_selection.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2015-04-17 16:12:48 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2015-04-17 16:13:40 +0100
commitf8650acb476227c3fffe739b97be28421810fcb6 (patch)
tree497dcdb4c2bddbbb546351b24bf7d4346a78f9bb /gtk2_ardour/route_processor_selection.cc
parentbb4576b700af86ce2ea43cdfa6af46834befdb87 (diff)
Don't modify a RouteUISelection that we've just erased
Diffstat (limited to 'gtk2_ardour/route_processor_selection.cc')
-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 ();
}