From d051691f89c2d51fa66b41e218bd34224a067856 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 8 May 2017 19:43:36 +0200 Subject: [PATCH] supplement 2 to 5f9f82b8e6f232218f2a47bcdad7cf365a1e395f --- src/gui/eventlist.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index 02e205425..9d2acb3b3 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -378,14 +378,7 @@ int CEventList::exec(const t_channel_id channel_id, const std::string& channelna UpdateTimerList(); bool dont_hide = false; - if(channelname_prev.empty() && channelname_next.empty()){ - std::string nextChannelName,prevChannelName,tmp; - t_channel_id tmp_channel_id = channel_id; - getPrvNextChannelName(tmp_channel_id, nextChannelName, prevChannelName, tmp,0); - paintHead(channel_id, channelname, prevChannelName, nextChannelName); - }else{ - paintHead(channel_id, channelname, channelname_prev, channelname_next); - } + paintHead(channel_id, channelname, channelname_prev, channelname_next); paint(channel_id); showFunctionBar(channel_id); @@ -898,6 +891,10 @@ void CEventList::paintHead(t_channel_id _channel_id, std::string _channelname, s header->paint(CC_SAVE_SCREEN_NO); + if(_channelname_prev.empty() && _channelname_next.empty()){ + getPrvNextChannelName(_channel_id, _channelname_next, _channelname_prev, _channelname,0); + } + paintBottomBox(_channelname_prev, _channelname_next); }