diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Screen.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index f26caee..e582b44 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -1522,7 +1522,7 @@ void BScreen::initMenu() { | |||
1522 | 1522 | ||
1523 | } | 1523 | } |
1524 | 1524 | ||
1525 | if (m_rootmenu.get() == 0) { | 1525 | if (m_rootmenu.get() == 0 || m_rootmenu->numberOfItems() == 0) { |
1526 | _FB_USES_NLS; | 1526 | _FB_USES_NLS; |
1527 | m_rootmenu.reset(createMenu(_FB_XTEXT(Menu, DefaultRootMenu, "Fluxbox default menu", "Title of fallback root menu"))); | 1527 | m_rootmenu.reset(createMenu(_FB_XTEXT(Menu, DefaultRootMenu, "Fluxbox default menu", "Title of fallback root menu"))); |
1528 | FbTk::RefCount<FbTk::Command<void> > restart_fb(FbTk::CommandParser<void>::instance().parse("restart")); | 1528 | FbTk::RefCount<FbTk::Command<void> > restart_fb(FbTk::CommandParser<void>::instance().parse("restart")); |