summaryrefslogtreecommitdiff
path: root/displaymenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'displaymenu.c')
-rw-r--r--displaymenu.c6
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) {