From d1e7fb48b3516f682c73aa716a279608a19125a0 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 29 Dec 2015 12:46:29 +0100 Subject: [PATCH] COsdSetup: try to fix multiple item arrangement while open osd settings Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/a78721f6406f7ce494d552132c71346cd7e23583 Author: Thilo Graf Date: 2015-12-29 (Tue, 29 Dec 2015) --- src/gui/osd_setup.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gui/osd_setup.cpp b/src/gui/osd_setup.cpp index 6b90a8536..1464b0dbe 100644 --- a/src/gui/osd_setup.cpp +++ b/src/gui/osd_setup.cpp @@ -510,15 +510,14 @@ int COsdSetup::showOsdSetup() osd_menu = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_COLORS, width, MN_WIDGET_ID_OSDSETUP); osd_menu->setWizardMode(is_wizard); - //menu colors - if (osd_menu_colors == NULL) - osd_menu_colors = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_COLORS, width, MN_WIDGET_ID_OSDSETUP_MENUCOLORS); - //intro with subhead and back button osd_menu->addIntroItems(LOCALE_MAINSETTINGS_OSD); //item menu colors - showOsdMenueColorSetup(osd_menu_colors); + if (osd_menu_colors == NULL){ + osd_menu_colors = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_COLORS, width, MN_WIDGET_ID_OSDSETUP_MENUCOLORS); + showOsdMenueColorSetup(osd_menu_colors); + } CMenuForwarder * mf = new CMenuForwarder(LOCALE_COLORMENU_MENUCOLORS, true, NULL, osd_menu_colors, NULL, CRCInput::RC_red); mf->setHint("", LOCALE_MENU_HINT_COLORS); osd_menu->addItem(mf);