diff options
author | markt <markt> | 2007-09-08 18:38:30 (GMT) |
---|---|---|
committer | markt <markt> | 2007-09-08 18:38:30 (GMT) |
commit | 16218ae90b2499773d0c49a8c2900f269f5a2974 (patch) | |
tree | b0bff08ecdd983808eeec136700bd27ea16ae03a /src/FbTk/Menu.cc | |
parent | adddf014bd80d5ea7595fc1e8df233a857b8d90f (diff) | |
download | fluxbox_pavel-16218ae90b2499773d0c49a8c2900f269f5a2974.zip fluxbox_pavel-16218ae90b2499773d0c49a8c2900f269f5a2974.tar.bz2 |
fix crash when changing toolbar visibility with empty toolbar.tools
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 ee17204..b0fcb4b 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc | |||
@@ -506,7 +506,7 @@ void Menu::updateMenu(int active_index) { | |||
506 | 506 | ||
507 | void Menu::show() { | 507 | void Menu::show() { |
508 | 508 | ||
509 | if (isVisible() || !menuitems.size()) | 509 | if (isVisible() || menuitems.empty()) |
510 | return; | 510 | return; |
511 | 511 | ||
512 | m_visible = true; | 512 | m_visible = true; |