From c9dd0d5336acd25a0af2278edc648effdb18c77a Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 8 May 2018 08:06:56 +0200 Subject: [PATCH] src/gui/epgplus.cpp: add missing home handling Window was not closed with exit button. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/59a9572535a19c51bbf488ca9c193b6b1293fe7a Author: Thilo Graf Date: 2018-05-08 (Tue, 08 May 2018) --- src/gui/epgplus.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/epgplus.cpp b/src/gui/epgplus.cpp index 473492ccb..81865ea5c 100644 --- a/src/gui/epgplus.cpp +++ b/src/gui/epgplus.cpp @@ -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);