- epgview: rework CEPGDataHandler::exec() to get work in movieplayer-mode too

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2018-07-22 23:27:23 +02:00
committed by Thilo Graf
parent 90d79d31e7
commit 1cb96902ef

View File

@@ -1703,19 +1703,21 @@ void CEpgData::ResetModules()
int CEPGDataHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/) int CEPGDataHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/)
{ {
int res = menu_return::RETURN_EXIT_ALL; int res = menu_return::RETURN_EXIT_ALL;
CChannelList *channelList;
CEpgData *e;
if (parent)
if (parent) {
parent->hide(); parent->hide();
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_ts)
{
CMoviePlayerGui::getInstance().showMovieInfo();
} }
else
{
CEpgData *e;
e = new CEpgData; e = new CEpgData;
e->show(CNeutrinoApp::getInstance()->channelList->getActiveChannel_ChannelID());
channelList = CNeutrinoApp::getInstance()->channelList;
e->show( channelList->getActiveChannel_ChannelID() );
delete e; delete e;
}
return res; return res;
} }