diff options
author | frosch <frosch@openttd.org> | 2008-05-24 11:19:30 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-05-24 11:19:30 +0000 |
commit | 8b1e7c818945959b5d346812dc8dba4be52c343b (patch) | |
tree | 85cbee8e300c85c80bce65d9e54d2735ad3390d3 /src/window_gui.h | |
parent | 6884f9cb419d141a09ed96ea6aab6f7bf245a6f5 (diff) | |
download | openttd-8b1e7c818945959b5d346812dc8dba4be52c343b.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.h | 5 |
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(); }; |