From 15e966360851c6e89e5293ec3e578e13659eb1b0 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 16 Apr 2015 22:24:13 +0200 Subject: [PATCH] channellist.cpp; fix kill dline --- src/gui/channellist.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 0eb875fec..983b6c1cf 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1636,6 +1636,12 @@ void CChannelList::clearItem2DetailsLine() void CChannelList::paintItem2DetailsLine (int pos) { + if (dline){ + dline->kill(); //kill details line + delete dline; + dline = NULL; + } + if (!g_settings.channellist_show_infobox) return; @@ -1643,12 +1649,6 @@ void CChannelList::paintItem2DetailsLine (int pos) int ypos1 = y + theight + pos*fheight + (fheight/2)-2; int ypos2 = y + height + (info_height/2)-2; - if (dline){ - dline->kill(); //kill details line - delete dline; - dline = NULL; - } - // paint Line if detail info (and not valid list pos) if (pos >= 0) { if (dline == NULL)