13
0

Don't modify a RouteUISelection that we've just erased

This commit is contained in:
John Emmas 2015-04-17 16:12:48 +01:00
parent bb4576b700
commit f8650acb47

View File

@ -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 ();
}