summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-04-17 19:44:55 +0000
committermichi_cc <michi_cc@openttd.org>2012-04-17 19:44:55 +0000
commitf6d0bf61093ea51135a06d8da747ce0ad5f4b9fb (patch)
tree3cc769887759b1d0d20ccaaa339ac9ab7f502191
parenta34dabce9c6d5e58ea9bd24d3d1b50772776a978 (diff)
downloadopenttd-f6d0bf61093ea51135a06d8da747ce0ad5f4b9fb.tar.xz
(svn r24144) -Change [FS#4605]: Reset 'convert signal' button when signal GUI is closed. (yorick)
-rw-r--r--src/rail_gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 7d6c541cb..cf10d4824 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -1482,6 +1482,11 @@ public:
this->OnInvalidateData();
}
+ ~BuildSignalWindow()
+ {
+ _convert_signal_button = false;
+ }
+
virtual void SetStringParameters(int widget) const
{
switch (widget) {