diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index f46efb04..5531410a 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc @@ -842,9 +842,7 @@ bool Menu::isItemSelectable(unsigned int index) const { if (index >= menuitems.size()) return false; const MenuItem *item = find(index); - return (!item || - (typeid(*item) == typeid(FbTk::MenuSeparator)) || - !item->isEnabled()) ? false : true; + return (!item || !item->isEnabled()) ? false : true; }