Archived
0

update profile current route on modify current route

This commit is contained in:
iMoHax
2015-11-27 15:08:23 +03:00
parent 50297f1f1e
commit f813e0d5f1

View File

@@ -194,8 +194,12 @@ public class RouteTrackController {
RouteModel newRoute = route.set(startIndex, path.get());
newRoute.addAll(startIndex, notAdded);
newRoute.addAll(startIndex, oldMissions);
if (MainController.getProfile().getRoute() == route){
MainController.getProfile().setRoute(newRoute);
} else {
setRoute(newRoute);
}
}
});
} else {
if (notAdded.isEmpty()){