mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
gui/bedit/bouqueteditor_channels.cpp: pass CZapitBouquet to CBEChannelSelectWidget,
mark inacttive both non-found and removed channels
This commit is contained in:
@@ -114,7 +114,7 @@ void CBEChannelWidget::paintItem(int pos)
|
|||||||
frameBuffer->paintBoxRel(x,ypos, width- 15, iheight, COL_MENUCONTENT_PLUS_0);
|
frameBuffer->paintBoxRel(x,ypos, width- 15, iheight, COL_MENUCONTENT_PLUS_0);
|
||||||
frameBuffer->paintBoxRel(x,ypos, width- 15, iheight, bgcolor, RADIUS_LARGE);
|
frameBuffer->paintBoxRel(x,ypos, width- 15, iheight, bgcolor, RADIUS_LARGE);
|
||||||
} else {
|
} else {
|
||||||
if(current < Channels->size() && ((*Channels)[current]->flags & CZapitChannel::NOT_FOUND ))
|
if(current < Channels->size() && ((*Channels)[current]->flags & CZapitChannel::NOT_PRESENT ))
|
||||||
color = COL_MENUCONTENTINACTIVE_TEXT;// extra color for channels not found in service
|
color = COL_MENUCONTENTINACTIVE_TEXT;// extra color for channels not found in service
|
||||||
else
|
else
|
||||||
color = COL_MENUCONTENT_TEXT;
|
color = COL_MENUCONTENT_TEXT;
|
||||||
@@ -467,7 +467,7 @@ void CBEChannelWidget::deleteChannel()
|
|||||||
|
|
||||||
void CBEChannelWidget::addChannel()
|
void CBEChannelWidget::addChannel()
|
||||||
{
|
{
|
||||||
CBEChannelSelectWidget* channelSelectWidget = new CBEChannelSelectWidget(caption, bouquet, mode);
|
CBEChannelSelectWidget* channelSelectWidget = new CBEChannelSelectWidget(caption, g_bouquetManager->Bouquets[bouquet], mode);
|
||||||
|
|
||||||
channelSelectWidget->exec(this, "");
|
channelSelectWidget->exec(this, "");
|
||||||
if (channelSelectWidget->hasChanged())
|
if (channelSelectWidget->hasChanged())
|
||||||
|
Reference in New Issue
Block a user