From: Mikko Rasa Date: Tue, 25 Jun 2013 15:28:38 +0000 (+0300) Subject: Emit a signal before changing the path of a turnout X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4eea980c210c3f3bf5520c1e3d68426a4669db8a;p=r2c2.git Emit a signal before changing the path of a turnout Since changing the path is an asynchronous operation, this lets other components react to an impending change. --- diff --git a/source/libr2c2/track.cpp b/source/libr2c2/track.cpp index ecb86bb..71c570c 100644 --- a/source/libr2c2/track.cpp +++ b/source/libr2c2/track.cpp @@ -151,6 +151,7 @@ void Track::set_active_path(unsigned p) if(!(type.get_paths()&(1< signal_link_changed; + sigc::signal signal_path_changing; sigc::signal signal_path_changed; private: