aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2009-09-23 20:21:13 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2009-09-23 20:21:13 (GMT)
commit4663a9591e08b554f82366cdd8e9075b0a6fbe55 (patch)
tree31d68447b63ce42c90aad579563a17e52ef55af5 /src/FbTk
parentcfd055064a6b02f05aa6b77d7d26a9b33ad8a1eb (diff)
downloadfluxbox-4663a9591e08b554f82366cdd8e9075b0a6fbe55.zip
fluxbox-4663a9591e08b554f82366cdd8e9075b0a6fbe55.tar.bz2
bugfix: 'HideMenus' command did not work if the user 'opened' an empty submenu.
'openeing' such an empty submenu lead to an already hidden menu referenced by the 'shown' pointer
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();