aboutsummaryrefslogtreecommitdiff
path: root/src/MenuCreator.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-09-08 18:38:30 (GMT)
committermarkt <markt>2007-09-08 18:38:30 (GMT)
commit16218ae90b2499773d0c49a8c2900f269f5a2974 (patch)
treeb0bff08ecdd983808eeec136700bd27ea16ae03a /src/MenuCreator.cc
parentadddf014bd80d5ea7595fc1e8df233a857b8d90f (diff)
downloadfluxbox-16218ae90b2499773d0c49a8c2900f269f5a2974.zip
fluxbox-16218ae90b2499773d0c49a8c2900f269f5a2974.tar.bz2
fix crash when changing toolbar visibility with empty toolbar.tools
Diffstat (limited to 'src/MenuCreator.cc')
-rw-r--r--src/MenuCreator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc
index 8507388..fefb3dc 100644
--- a/src/MenuCreator.cc
+++ b/src/MenuCreator.cc
@@ -325,7 +325,7 @@ static void translateMenuItem(Parser &parse, ParseItem &pitem, FbTk::StringConve
325 if (submenu == 0) 325 if (submenu == 0)
326 return; 326 return;
327 327
328 if (str_cmd.size()) 328 if (!str_cmd.empty())
329 submenu->setLabel(str_cmd); 329 submenu->setLabel(str_cmd);
330 else 330 else
331 submenu->setLabel(str_label); 331 submenu->setLabel(str_label);