supplement to 7bebdf91e0, simplification

This commit is contained in:
satbaby
2012-12-08 16:28:53 +01:00
parent 7bebdf91e0
commit 59fa692bd0
3 changed files with 13 additions and 25 deletions

View File

@@ -1955,18 +1955,16 @@ void CNeutrinoApp::numericZap(int msg)
void CNeutrinoApp::showInfo()
{
StopSubtitles();
std::string name = channelList->getActiveChannelName();
std::string pname = "";
char *pname = NULL;
if(g_settings.infobar_show_channeldesc){
CZapitChannel* channel= channelList->getActiveChannel();
CZapitChannel* channel = channelList->getActiveChannel();
if(channel->pname){
pname = channel->pname;
pname=pname.substr(pname.find_first_of("]")+1);
}
}
g_InfoViewer->showTitle(channelList->getActiveChannelNumber(), name, channelList->getActiveSatellitePosition(), channelList->getActiveChannel_ChannelID(), false, 0, pname);
g_InfoViewer->showTitle(channelList->getActiveChannelNumber(), channelList->getActiveChannelName(), channelList->getActiveSatellitePosition(), channelList->getActiveChannel_ChannelID(), false, 0, pname);
StartSubtitles();
}