From: Mikko Rasa Date: Wed, 26 Mar 2014 20:36:00 +0000 (+0200) Subject: Emit signal_route_changed when moving to the next route X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f2092c352667a3178bfea9c2bc90882e4b7fb3aa;p=r2c2.git Emit signal_route_changed when moving to the next route --- diff --git a/source/libr2c2/trainrouter.cpp b/source/libr2c2/trainrouter.cpp index 6bd94fc..2be3c88 100644 --- a/source/libr2c2/trainrouter.cpp +++ b/source/libr2c2/trainrouter.cpp @@ -237,8 +237,10 @@ void TrainRouter::train_advanced(Block &block) if(route.has_track(*b_iter.endpoint().track)) { routes.pop_front(); + const Route *r = get_route(); // XXX Exceptions? - signal_event.emit(Message("route-changed", get_route())); + signal_route_changed.emit(r); + signal_event.emit(Message("route-changed", r)); } }