From e5296bd32a0abd8f8962b0aebd78bdda1418351a Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 30 Oct 2011 14:09:21 +0000 Subject: [PATCH] neutrino: fix painting of button bar in eventlist if sort record and remind buttons are not set, then the button bar would vanish at every key up/down event git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1797 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/af0cc784c3ea8d319c8e2c74b1e91830e99dd7c1 Author: Stefan Seyfried Date: 2011-10-30 (Sun, 30 Oct 2011) --- src/gui/eventlist.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index 3b44601d4..bf13abc08 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -375,13 +375,12 @@ int EventList::exec(const t_channel_id channel_id, const std::string& channelnam bool paint_buttonbar = false; //function bar int step = 0; int prev_selected = selected; - + // TODO: do we need this at all? Search button is always painted IIUC... if ((g_settings.key_channelList_addremind != (int)CRCInput::RC_nokey) || - ((g_settings.recording_type != CNeutrinoApp::RECORDING_OFF) && - (g_settings.key_channelList_addrecord != (int)CRCInput::RC_nokey))) - { + (g_settings.key_channelList_sort != (int)CRCInput::RC_nokey) || + ((g_settings.recording_type != CNeutrinoApp::RECORDING_OFF) && + (g_settings.key_channelList_addrecord != (int)CRCInput::RC_nokey))) paint_buttonbar = true; - } if (msg == CRCInput::RC_up || (int) msg == g_settings.key_channelList_pageup) {