neutrino.cpp: bugfix: every soft-standby leave,

new CRadioText was created;
move CRadioText create before zap
This commit is contained in:
[CST] Focus
2012-10-25 18:09:43 +04:00
parent a7513af84d
commit 9154c96783

View File

@@ -3352,6 +3352,10 @@ void CNeutrinoApp::radioMode( bool rezap)
g_RemoteControl->radioMode(); g_RemoteControl->radioMode();
SetChannelMode(g_settings.channel_mode_radio); SetChannelMode(g_settings.channel_mode_radio);
if (g_settings.radiotext_enable && !g_Radiotext)
g_Radiotext = new CRadioText;
if( rezap ) { if( rezap ) {
t_channel_id last_chid = CZapit::getInstance()->GetLastRADIOChannel(); t_channel_id last_chid = CZapit::getInstance()->GetLastRADIOChannel();
channelList->setSelected(0xfffffff); /* make sure that zapTo_ChannelID will zap */ channelList->setSelected(0xfffffff); /* make sure that zapTo_ChannelID will zap */
@@ -3361,10 +3365,6 @@ void CNeutrinoApp::radioMode( bool rezap)
channelList->zapTo(0); channelList->zapTo(0);
} }
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/radiomode.jpg"); videoDecoder->ShowPicture(DATADIR "/neutrino/icons/radiomode.jpg");
if (g_settings.radiotext_enable) {
g_Radiotext = new CRadioText;
}
} }
//switching from current mode to tv or radio mode or to optional parameter prev_mode //switching from current mode to tv or radio mode or to optional parameter prev_mode