From 4eea980c210c3f3bf5520c1e3d68426a4669db8a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 25 Jun 2013 18:28:38 +0300 Subject: [PATCH] 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. --- source/libr2c2/track.cpp | 1 + source/libr2c2/track.h | 1 + 2 files changed, 2 insertions(+) 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: -- 2.43.0