summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Menu.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 4489d0f..ded5dab 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -759,7 +759,7 @@ void Menu::drawSubmenu(unsigned int index) {
759 if (! m_moving) 759 if (! m_moving)
760 clearItem(index); 760 clearItem(index);
761 761
762 if (! item->submenu()->isVisible()) { 762 if (! item->submenu()->isVisible() && item->submenu()->numberOfItems() > 0) {
763 shown = item->submenu(); 763 shown = item->submenu();
764 item->showSubmenu(); 764 item->showSubmenu();
765 item->submenu()->raise(); 765 item->submenu()->raise();