From 498c2ad6c3e59784933960e3c7bb63c953f1a3d5 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 17 Feb 2013 11:57:44 +0100 Subject: Fixed a bug with cdplayer plugin, this plugin calls no clear before showing menu --- displaymenu.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'displaymenu.c') diff --git a/displaymenu.c b/displaymenu.c index dc06c62..de8bdfb 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -267,6 +267,12 @@ void cNopacityDisplayMenu::SetMenuCategory(eMenuCategory MenuCategory) { } void cNopacityDisplayMenu::SetTitle(const char *Title) { + //resetting menuitems if no call to clear + if (!initMenu) { + initMenu = true; + menuItemIndexLast = -1; + menuItems.Clear(); + } int left = 5; menuView->DestroyHeaderIcon(); if (Title) { -- cgit v1.2.3