]> git.tdb.fi Git - r2c2.git/commitdiff
Emit signal_route_changed when moving to the next route
authorMikko Rasa <tdb@tdb.fi>
Wed, 26 Mar 2014 20:36:00 +0000 (22:36 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 26 Mar 2014 20:36:00 +0000 (22:36 +0200)
source/libr2c2/trainrouter.cpp

index 6bd94fccf81dc3faed4fa816a0e5ada19789efdc..2be3c8814fd14727d7ff3a5ffdbb8fc8458ffc0e 100644 (file)
@@ -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));
                }
        }