diff options
author | simonb <simonb> | 2006-04-25 03:11:31 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-04-25 03:11:31 (GMT) |
commit | e2bc57bc0fef16faba89f996e354445c31aebedd (patch) | |
tree | cc6127b87a9c5d5c2e6ecc84a4317c04dabb0e63 /src/FbTk/Menu.cc | |
parent | cb65dae95fb3bd01cb4e43286ba2a56c41838d2e (diff) | |
download | fluxbox-e2bc57bc0fef16faba89f996e354445c31aebedd.zip fluxbox-e2bc57bc0fef16faba89f996e354445c31aebedd.tar.bz2 |
Fix occasional highlighting of menu nops+separators, sf.net patch
#1475268 (thanks Scott Kuhl; skuhl AT cs utah edu)
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r-- | src/FbTk/Menu.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index b08bfe9..d99c9ba 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc | |||
@@ -1182,7 +1182,7 @@ void Menu::openSubmenu() { | |||
1182 | return; | 1182 | return; |
1183 | 1183 | ||
1184 | int item = m_which_sbl * menu.persub + m_which_press; | 1184 | int item = m_which_sbl * menu.persub + m_which_press; |
1185 | if (!validIndex(item)) | 1185 | if (!validIndex(item) || !menuitems[item]->isEnabled()) |
1186 | return; | 1186 | return; |
1187 | 1187 | ||
1188 | clearItem(item); | 1188 | clearItem(item); |