summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-05-24 11:19:30 +0000
committerfrosch <frosch@openttd.org>2008-05-24 11:19:30 +0000
commit9da2cd6e022b1a966c7fb7e51ddcee32790a1b48 (patch)
tree85cbee8e300c85c80bce65d9e54d2735ad3390d3 /src/window_gui.h
parent080af12d8baa577d599b7a5684524221b045f740 (diff)
downloadopenttd-9da2cd6e022b1a966c7fb7e51ddcee32790a1b48.tar.xz
(svn r13230) -Fix [FS#2030](r13171): When closing toolbars, also close their PickerWindows.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index bc2df770d..7b62da461 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -426,7 +426,10 @@ public:
class PickerWindowBase : public Window {
public:
- PickerWindowBase(const WindowDesc *desc) : Window(desc) {}; // nothing special yet, just propagation
+ PickerWindowBase(const WindowDesc *desc, Window *parent) : Window(desc)
+ {
+ this->parent = parent;
+ };
virtual ~PickerWindowBase();
};