mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
src/gui/epgplus.cpp: add missing home handling
Window was not closed with exit button.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user