diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/MenuItem.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/FbTk/MenuItem.hh b/src/FbTk/MenuItem.hh index 4bbfcf3..ad54dc6 100644 --- a/src/FbTk/MenuItem.hh +++ b/src/FbTk/MenuItem.hh | |||
@@ -47,7 +47,8 @@ public: | |||
47 | m_enabled(true), | 47 | m_enabled(true), |
48 | m_selected(false), | 48 | m_selected(false), |
49 | m_close_on_click(true), | 49 | m_close_on_click(true), |
50 | m_toggle_item(false) | 50 | m_toggle_item(false), |
51 | m_index(0) | ||
51 | { } | 52 | { } |
52 | 53 | ||
53 | explicit MenuItem(const BiDiString &label) | 54 | explicit MenuItem(const BiDiString &label) |
@@ -58,6 +59,7 @@ public: | |||
58 | m_selected(false), | 59 | m_selected(false), |
59 | m_close_on_click(true), | 60 | m_close_on_click(true), |
60 | m_toggle_item(false) | 61 | m_toggle_item(false) |
62 | m_index(0) | ||
61 | { } | 63 | { } |
62 | 64 | ||
63 | MenuItem(const BiDiString &label, Menu &host_menu) | 65 | MenuItem(const BiDiString &label, Menu &host_menu) |
@@ -68,6 +70,7 @@ public: | |||
68 | m_selected(false), | 70 | m_selected(false), |
69 | m_close_on_click(true), | 71 | m_close_on_click(true), |
70 | m_toggle_item(false) | 72 | m_toggle_item(false) |
73 | m_index(0) | ||
71 | { } | 74 | { } |
72 | /// create a menu item with a specific command to be executed on click | 75 | /// create a menu item with a specific command to be executed on click |
73 | MenuItem(const BiDiString &label, RefCount<Command<void> > &cmd, Menu *menu = 0) | 76 | MenuItem(const BiDiString &label, RefCount<Command<void> > &cmd, Menu *menu = 0) |
@@ -79,6 +82,7 @@ public: | |||
79 | m_selected(false), | 82 | m_selected(false), |
80 | m_close_on_click(true), | 83 | m_close_on_click(true), |
81 | m_toggle_item(false) | 84 | m_toggle_item(false) |
85 | m_index(0) | ||
82 | { } | 86 | { } |
83 | 87 | ||
84 | MenuItem(const BiDiString &label, Menu *submenu, Menu *host_menu = 0) | 88 | MenuItem(const BiDiString &label, Menu *submenu, Menu *host_menu = 0) |
@@ -89,6 +93,7 @@ public: | |||
89 | m_selected(false), | 93 | m_selected(false), |
90 | m_close_on_click(true), | 94 | m_close_on_click(true), |
91 | m_toggle_item(false) | 95 | m_toggle_item(false) |
96 | m_index(0) | ||
92 | { } | 97 | { } |
93 | virtual ~MenuItem(); | 98 | virtual ~MenuItem(); |
94 | 99 | ||