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
commit8b1e7c818945959b5d346812dc8dba4be52c343b (patch)
tree85cbee8e300c85c80bce65d9e54d2735ad3390d3 /src/window_gui.h
parent6884f9cb419d141a09ed96ea6aab6f7bf245a6f5 (diff)
downloadopenttd-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.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();
};