diff options
author | louis <louis.braun@gmx.de> | 2013-02-17 11:57:44 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-02-17 11:57:44 +0100 |
commit | 498c2ad6c3e59784933960e3c7bb63c953f1a3d5 (patch) | |
tree | 816d805ba0a663ccfc60fe1a3545f49808db0a38 /displaymenu.c | |
parent | 52bfe28fa343ad6624f2653cefef4b280e5a67f4 (diff) | |
download | skin-nopacity-498c2ad6c3e59784933960e3c7bb63c953f1a3d5.tar.gz skin-nopacity-498c2ad6c3e59784933960e3c7bb63c953f1a3d5.tar.bz2 |
Fixed a bug with cdplayer plugin, this plugin calls no clear before showing menu
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |