From 3fef93574ac5e3715a6ef96709029ce42a7e8fd5 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 20 Dec 2017 10:55:33 +0100 Subject: [PATCH] - user-menu: avoid empty headers in user-menu Signed-off-by: Thilo Graf --- src/gui/user_menue.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/user_menue.cpp b/src/gui/user_menue.cpp index aedc4af8c..34836f193 100644 --- a/src/gui/user_menue.cpp +++ b/src/gui/user_menue.cpp @@ -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)