aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/Menu.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index f46efb0..5531410 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -842,9 +842,7 @@ bool Menu::isItemSelectable(unsigned int index) const {
842 if (index >= menuitems.size()) return false; 842 if (index >= menuitems.size()) return false;
843 843
844 const MenuItem *item = find(index); 844 const MenuItem *item = find(index);
845 return (!item || 845 return (!item || !item->isEnabled()) ? false : true;
846 (typeid(*item) == typeid(FbTk::MenuSeparator)) ||
847 !item->isEnabled()) ? false : true;
848} 846}
849 847
850 848