diff options
author | louis <louis.braun@gmx.de> | 2012-12-07 14:44:55 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2012-12-07 14:44:55 +0100 |
commit | a8a2bd61fd2931b79c0f39812ef30a0cc7292d82 (patch) | |
tree | 30d0fc1e8ef1facc51b4ed951fed5a5484864132 /displaymenu.c | |
parent | d58b48418a7ce80d2186c720f20a06d46a78a2ec (diff) | |
download | skin-nopacity-a8a2bd61fd2931b79c0f39812ef30a0cc7292d82.tar.gz skin-nopacity-a8a2bd61fd2931b79c0f39812ef30a0cc7292d82.tar.bz2 |
Fixed some crashes
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/displaymenu.c b/displaymenu.c index bbd27e1..701e749 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -17,7 +17,6 @@ cNopacityDisplayMenu::cNopacityDisplayMenu(void) { lastTimersState = -1; menuItemIndexLast = -1; currentNumItems = 0; - channelName = NULL; menuHasIcons = true; detailView = NULL; contentNarrow = true; @@ -193,7 +192,7 @@ void cNopacityDisplayMenu::SetTitle(const char *Title) { menuHasIcons = true; contentNarrow = true; //EPGSearch search results - } else if (isdigit(strTitle.at(0))) { + } else if ((strTitle.length() > 0) && isdigit(strTitle.at(0))) { menuSubCategory = mcSubScheduleSearchResults; left += menuView->DrawHeaderIcon(mcSchedule); menuHasIcons = true; @@ -246,9 +245,6 @@ void cNopacityDisplayMenu::SetTitle(const char *Title) { } menuView->AdjustContentBackground(contentNarrow, contentNarrowLast); menuView->DrawHeaderLabel(left, title); - if (MenuCategory() == mcEvent) { - channelName = Title; - } } } @@ -415,7 +411,7 @@ void cNopacityDisplayMenu::SetEvent(const cEvent *Event) { if (!Event) return; menuView->AdjustContentBackground(false, contentNarrowLast); - detailView = new cNopacityMenuDetailEventView(osd, Event, *channelName); + detailView = new cNopacityMenuDetailEventView(osd, Event); menuView->SetDetailViewSize(dvEvent, detailView); detailView->SetFonts(); if (config.displayRerunsDetailEPGView) |