aboutsummaryrefslogtreecommitdiff
path: root/src/BoolMenuItem.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/BoolMenuItem.hh')
-rw-r--r--src/BoolMenuItem.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/BoolMenuItem.hh b/src/BoolMenuItem.hh
index 29eef15..d10a7ac 100644
--- a/src/BoolMenuItem.hh
+++ b/src/BoolMenuItem.hh
@@ -34,11 +34,13 @@ public:
34 FbTk::MenuItem(label, cmd), m_item(item) { 34 FbTk::MenuItem(label, cmd), m_item(item) {
35 FbTk::MenuItem::setSelected(m_item); 35 FbTk::MenuItem::setSelected(m_item);
36 setToggleItem(true); 36 setToggleItem(true);
37 setCloseOnClick(false);
37 } 38 }
38 BoolMenuItem(const FbTk::FbString &label, bool &item): 39 BoolMenuItem(const FbTk::FbString &label, bool &item):
39 FbTk::MenuItem(label), m_item(item) { 40 FbTk::MenuItem(label), m_item(item) {
40 FbTk::MenuItem::setSelected(m_item); 41 FbTk::MenuItem::setSelected(m_item);
41 setToggleItem(true); 42 setToggleItem(true);
43 setCloseOnClick(false);
42 } 44 }
43 bool isSelected() const { return m_item; } 45 bool isSelected() const { return m_item; }
44 // toggle state 46 // toggle state