mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
channellist.cpp: Fix segfault at 'delete Infobox' when changes in bouquet list.
This commit is contained in:
@@ -116,7 +116,7 @@ CChannelList::CChannelList(const char * const pName, bool phistoryMode, bool _vl
|
|||||||
previous_channellist_additional = -1;
|
previous_channellist_additional = -1;
|
||||||
eventFont = SNeutrinoSettings::FONT_TYPE_CHANNELLIST_EVENT;
|
eventFont = SNeutrinoSettings::FONT_TYPE_CHANNELLIST_EVENT;
|
||||||
dline = NULL;
|
dline = NULL;
|
||||||
ibox = new CComponentsInfoBox(x, y + height + 2, width, info_height);
|
ibox = NULL;
|
||||||
clHead = NULL;
|
clHead = NULL;
|
||||||
indexLogo = 0;
|
indexLogo = 0;
|
||||||
|
|
||||||
@@ -1547,6 +1547,7 @@ void CChannelList::paintDetails(int index)
|
|||||||
p_event = &chanlist[index]->currentEvent;
|
p_event = &chanlist[index]->currentEvent;
|
||||||
|
|
||||||
//infobox
|
//infobox
|
||||||
|
if (ibox)
|
||||||
ibox->paint(false);
|
ibox->paint(false);
|
||||||
|
|
||||||
if (!p_event->description.empty()) {
|
if (!p_event->description.empty()) {
|
||||||
@@ -1664,6 +1665,8 @@ void CChannelList::paintItem2DetailsLine (int pos)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//infobox
|
//infobox
|
||||||
|
if (ibox == NULL)
|
||||||
|
ibox = new CComponentsInfoBox(x, y + height + 2, width, info_height);
|
||||||
if (ibox){
|
if (ibox){
|
||||||
ibox->setDimensionsAll(x, ypos2, width, info_height);
|
ibox->setDimensionsAll(x, ypos2, width, info_height);
|
||||||
ibox->setFrameThickness(2);
|
ibox->setFrameThickness(2);
|
||||||
|
Reference in New Issue
Block a user