CUpnpBrowserGui: fix dline paint during directory selection

Dline was not removed on directory selection.
This commit is contained in:
2017-07-01 20:40:20 +02:00
parent 18e1ec060f
commit baf441b5d0

View File

@@ -1226,8 +1226,11 @@ void CUpnpBrowserGui::paintDetails(UPnPEntry *entry, bool use_playing)
void CUpnpBrowserGui::paintItem2DetailsLine(int pos)
{
if (pos < 0)
if (pos < 0){
if (dline)
dline->kill();
return;
}
int xpos = m_x - DETAILSLINE_WIDTH;
int ypos1 = m_item_y + pos*m_item_height;