From 28c67bbc9b19de8aa256b2d3c4b58a1bb4e002a4 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Fri, 10 May 2013 11:28:22 +0200 Subject: [PATCH] CNeutrinoEventList::exec call hide only once --- src/gui/eventlist.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index 697e85b34..a56e7bd6c 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -306,11 +306,11 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c } UpdateTimerList(); + bool dont_hide = false; if(channelname_prev.empty(), channelname_next.empty()){ paintHead(channel_id, channelname); }else{ paintHead(channelname, channelname_prev, channelname_next); - } paint(channel_id); showFunctionBar(true, channel_id); @@ -580,6 +580,7 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c } } loop = false; + dont_hide = true; exec(_channel_id, current_channel_name, prev_channel_name, next_channel_name); } else if (msg == CRCInput::RC_0) { @@ -671,8 +672,10 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c oldEventID = -1; bgRightBoxPaint = false; - hide(); - fader.Stop(); + if(!dont_hide){ + hide(); + fader.Stop(); + } return res; }