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

Window was not closed with exit button.
This commit is contained in:
2018-05-08 08:06:56 +02:00
parent cccb6a7ce6
commit a5b16ace60

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);