Skip to content

Commit

Permalink
- user-menu: avoid empty headers in user-menu
Browse files Browse the repository at this point in the history
Signed-off-by: Thilo Graf <[email protected]>
  • Loading branch information
svenhoefer authored and dbt1 committed Dec 21, 2017
1 parent 97327f0 commit 3fef935
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/user_menue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
std::string txt = g_settings.usermenu[button]->title;
if (button < COL_BUTTONMAX && txt.empty())
txt = g_Locale->getText(user_menu[button].caption);
if (txt.empty())
txt = g_Locale->getText(LOCALE_USERMENU_HEAD);

CMenuWidget *menu = new CMenuWidget(txt, (button < COL_BUTTONMAX) ? user_menu[button].menu_icon_def : "", width);
if (menu == NULL)
Expand Down

0 comments on commit 3fef935

Please sign in to comment.