diff options
-rw-r--r-- | src/FbTk/Menu.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index 4d6a6c0..fbf7e45 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc | |||
@@ -830,10 +830,9 @@ bool Menu::isItemSelectable(unsigned int index) const { | |||
830 | if (index >= menuitems.size()) return false; | 830 | if (index >= menuitems.size()) return false; |
831 | 831 | ||
832 | const MenuItem *item = find(index); | 832 | const MenuItem *item = find(index); |
833 | if (!item) | 833 | return (!item || |
834 | return false; | 834 | (typeid(*item) == typeid(FbTk::MenuSeparator)) || |
835 | 835 | !item->isEnabled()) ? false : true; | |
836 | return (typeid(*item) != typeid(FbTk::MenuSeparator)); | ||
837 | } | 836 | } |
838 | 837 | ||
839 | 838 | ||