summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-07-20 19:44:28 +0000
committeralberth <alberth@openttd.org>2009-07-20 19:44:28 +0000
commit03abe67e88e2363e7d08336effab0795a417056e (patch)
treeaf7725ffe7300741b99fdc03d45b28b0bc59677c
parent2a5784c53d12bbef12ee0a6cdf4faeac3b82e539 (diff)
downloadopenttd-03abe67e88e2363e7d08336effab0795a417056e.tar.xz
(svn r16892) -Codechange: Add support for nested widget tree windows to PickerWindowBase.
-rw-r--r--src/window_gui.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 45ef5b8f7..387dab1f6 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -704,7 +704,7 @@ public:
};
/**
- * Data structure for a window opened from a toolbar
+ * Base class for windows opened from a toolbar.
*/
class PickerWindowBase : public Window {
@@ -714,6 +714,11 @@ public:
this->parent = parent;
};
+ PickerWindowBase(Window *parent) : Window()
+ {
+ this->parent = parent;
+ };
+
virtual ~PickerWindowBase();
};