mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
Show default color of numbox and numboxtext when zapping over current channel in virtual zap, fix possible segfault
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1030 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -608,14 +608,15 @@ void CInfoViewer::showTitle (const int ChanNum, const std::string & Channel, con
|
|||||||
} else
|
} else
|
||||||
fadeValue = g_settings.infobar_alpha;
|
fadeValue = g_settings.infobar_alpha;
|
||||||
|
|
||||||
int col_NumBoxText;
|
int col_NumBoxText = COL_INFOBAR;
|
||||||
int col_NumBox;
|
int col_NumBox = COL_INFOBAR_PLUS_0;
|
||||||
ChannelName = Channel;
|
ChannelName = Channel;
|
||||||
bool new_chan = false;
|
bool new_chan = false;
|
||||||
|
|
||||||
if (virtual_zap_mode) {
|
if (virtual_zap_mode) {
|
||||||
col_NumBoxText = COL_MENUHEAD;
|
if (g_RemoteControl->current_channel_id != new_channel_id) {
|
||||||
col_NumBox = COL_MENUHEAD_PLUS_0;
|
col_NumBoxText = COL_MENUHEAD;
|
||||||
|
}
|
||||||
if ((channel_id != new_channel_id) || (evtlist.empty())) {
|
if ((channel_id != new_channel_id) || (evtlist.empty())) {
|
||||||
evtlist.clear();
|
evtlist.clear();
|
||||||
//evtlist = g_Sectionsd->getEventsServiceKey(new_channel_id & 0xFFFFFFFFFFFFULL);
|
//evtlist = g_Sectionsd->getEventsServiceKey(new_channel_id & 0xFFFFFFFFFFFFULL);
|
||||||
@@ -624,9 +625,6 @@ void CInfoViewer::showTitle (const int ChanNum, const std::string & Channel, con
|
|||||||
sort(evtlist.begin(),evtlist.end(), sortByDateTime);
|
sort(evtlist.begin(),evtlist.end(), sortByDateTime);
|
||||||
new_chan = true;
|
new_chan = true;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
col_NumBoxText = COL_INFOBAR;
|
|
||||||
col_NumBox = COL_INFOBAR_PLUS_0;
|
|
||||||
}
|
}
|
||||||
if (! calledFromNumZap && !(g_RemoteControl->subChannels.empty()) && (g_RemoteControl->selected_subchannel > 0))
|
if (! calledFromNumZap && !(g_RemoteControl->subChannels.empty()) && (g_RemoteControl->selected_subchannel > 0))
|
||||||
{
|
{
|
||||||
|
@@ -535,7 +535,7 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case (CRCInput::RC_left):
|
case (CRCInput::RC_left):
|
||||||
if(!(items[selected]->can_arrow) || g_settings.menu_left_exit) {
|
if(( hasItem() && !(items[selected]->can_arrow)) || g_settings.menu_left_exit) {
|
||||||
msg = CRCInput::RC_timeout;
|
msg = CRCInput::RC_timeout;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user