src/gui/epgplus.cpp: add missing home handling

Window was not closed with exit button.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 59a9572535
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-05-08 (Tue, 08 May 2018)



------------------
This commit was generated by Migit
This commit is contained in:
2018-05-08 08:06:56 +02:00
committed by vanhofen
parent 82a6b97831
commit 4d38a9ec12

View File

@@ -112,7 +112,7 @@ void EpgPlus::Header::paint(const char * Name)
if (this->head == NULL)
{
this->head = new CComponentsHeader();
this->head->setContextButton(CComponentsHeader::CC_BTN_HELP);
this->head->setContextButton(CComponentsHeader::CC_BTN_HELP | CComponentsHeader::CC_BTN_EXIT);
this->head->enableClock(true, "%H:%M", "%H %M", true);
this->head->enableShadow(CC_SHADOW_RIGHT | CC_SHADOW_CORNER_TOP_RIGHT | CC_SHADOW_CORNER_BOTTOM_RIGHT, -1, true);
@@ -1316,6 +1316,11 @@ int EpgPlus::exec(CChannelList * pchannelList, int selectedChannelIndex, CBouque
}
}
}
else if (msg == CRCInput::RC_home)
{
loop = false;
res = menu_return::RETURN_EXIT_ALL;
}
else if (CNeutrinoApp::getInstance()->listModeKey(msg))
{
g_RCInput->postMsg(msg, 0);