From 25a9841b99b94d820bd64ea7ee244c499ede2d4b Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 1 Apr 2014 13:09:17 +0200 Subject: [PATCH] bouqueteditor_channels - CBEChannelWidget::paintItem: extra color for channels not found in service Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f65454c3d44b44653c5faac43fa0d00008f45858 Author: Jacek Jendrzej Date: 2014-04-01 (Tue, 01 Apr 2014) --- src/gui/bedit/bouqueteditor_channels.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/bedit/bouqueteditor_channels.cpp b/src/gui/bedit/bouqueteditor_channels.cpp index 4c9ccd46c..83dc6885e 100644 --- a/src/gui/bedit/bouqueteditor_channels.cpp +++ b/src/gui/bedit/bouqueteditor_channels.cpp @@ -114,7 +114,10 @@ void CBEChannelWidget::paintItem(int pos) frameBuffer->paintBoxRel(x,ypos, width- 15, iheight, COL_MENUCONTENT_PLUS_0); frameBuffer->paintBoxRel(x,ypos, width- 15, iheight, bgcolor, RADIUS_LARGE); } else { - color = COL_MENUCONTENT_TEXT; + if(current < Channels->size() && ((*Channels)[current]->flags & CZapitChannel::NOT_FOUND )) + color = COL_COLORED_EVENTS_TEXT;// extra color for channels not found in service + else + color = COL_MENUCONTENT_TEXT; bgcolor = COL_MENUCONTENT_PLUS_0; frameBuffer->paintBoxRel(x,ypos, width- 15, iheight, bgcolor); }