mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- channellist: move avoid-zap-in-movieplayer-mode-message ...
... to a global reachable place to avoid all zap tries Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -774,8 +774,6 @@ int CChannelList::show()
|
|||||||
actzap = true;
|
actzap = true;
|
||||||
oldselected = selected;
|
oldselected = selected;
|
||||||
paintBody(); // refresh zapped vs selected
|
paintBody(); // refresh zapped vs selected
|
||||||
} else if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_ts) {
|
|
||||||
ShowHint(LOCALE_MESSAGEBOX_INFO, LOCALE_MOVIEPLAYER_ZAP);
|
|
||||||
} else if(SameTP()) {
|
} else if(SameTP()) {
|
||||||
zapOnExit = true;
|
zapOnExit = true;
|
||||||
loop=false;
|
loop=false;
|
||||||
@@ -945,10 +943,6 @@ int CChannelList::show()
|
|||||||
printf("CChannelList:: bouquetList->exec res %d\n", res);
|
printf("CChannelList:: bouquetList->exec res %d\n", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(NeutrinoModes::mode_ts == CNeutrinoApp::getInstance()->getMode())
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
if(zapOnExit)
|
if(zapOnExit)
|
||||||
res = selected;
|
res = selected;
|
||||||
|
|
||||||
@@ -1191,6 +1185,12 @@ void CChannelList::zapToChannel(CZapitChannel *channel, bool force)
|
|||||||
if(channel == NULL)
|
if(channel == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_ts)
|
||||||
|
{
|
||||||
|
ShowHint(LOCALE_MESSAGEBOX_INFO, LOCALE_MOVIEPLAYER_ZAP);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* we record when we switched away from a channel, so that the parental-PIN code can
|
/* we record when we switched away from a channel, so that the parental-PIN code can
|
||||||
check for timeout. last_unlocked_time == 0 means: the PIN was not entered
|
check for timeout. last_unlocked_time == 0 means: the PIN was not entered
|
||||||
"tuned" is the *old* channel, before zap */
|
"tuned" is the *old* channel, before zap */
|
||||||
|
@@ -1081,9 +1081,6 @@ int EpgPlus::exec(CChannelList * pchannelList, int selectedChannelIndex, CBouque
|
|||||||
{
|
{
|
||||||
if (selectedChannelEntry)
|
if (selectedChannelEntry)
|
||||||
{
|
{
|
||||||
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_ts)
|
|
||||||
ShowHint(LOCALE_MESSAGEBOX_INFO, LOCALE_MOVIEPLAYER_ZAP);
|
|
||||||
else
|
|
||||||
CNeutrinoApp::getInstance()->channelList->zapTo_ChannelID(selectedChannelEntry->channel->getChannelID());
|
CNeutrinoApp::getInstance()->channelList->zapTo_ChannelID(selectedChannelEntry->channel->getChannelID());
|
||||||
}
|
}
|
||||||
current_bouquet = bouquetList->getActiveBouquetNumber();
|
current_bouquet = bouquetList->getActiveBouquetNumber();
|
||||||
|
Reference in New Issue
Block a user