From 1d5a75af58aa2f3ce87a6ae32c357c948b872f0d Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 25 Oct 2014 12:47:00 +0200 Subject: [PATCH] if a subview is completely not set in a skin, the default menu is used --- HISTORY | 2 +- displaymenu.c | 4 ++-- dtd/displaymenu.dtd | 4 ++-- views/displaymenurootview.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/HISTORY b/HISTORY index cab68e2..a615fa3 100644 --- a/HISTORY +++ b/HISTORY @@ -30,4 +30,4 @@ Version 0.0.2 - added extented recording information - added token {nummenuitem} as number of item for every list, value starts with 1 - fixed bug that x and y of subviews was not respected - +- if a subview is completely not set in a skin, the default menu is used diff --git a/displaymenu.c b/displaymenu.c index c029174..9f0e97e 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -155,9 +155,9 @@ void cSDDisplayMenu::SetItem(const char *Text, int Index, bool Current, bool Sel if (config.blockFlush) rootView->LockFlush(); eMenuCategory cat = MenuCategory(); - if (cat == mcMain) { + if (cat == mcMain && rootView->SubViewAvailable()) { list->AddMainMenuItem(Index, Text, Current, Selectable); - } else if (cat == mcSetup) { + } else if (cat == mcSetup && rootView->SubViewAvailable()) { list->AddSetupMenuItem(Index, Text, Current, Selectable); } else { string *tabTexts = new string[MaxTabs]; diff --git a/dtd/displaymenu.dtd b/dtd/displaymenu.dtd index b70a944..4b93809 100644 --- a/dtd/displaymenu.dtd +++ b/dtd/displaymenu.dtd @@ -3,8 +3,8 @@