Don't modify a RouteUISelection that we've just erased
This commit is contained in:
parent
bb4576b700
commit
f8650acb47
@ -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 ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user