pvr: only update channel IconPath if the comparison channel IconPath is ... #1860

Closed
wants to merge 1 commit into from
View
2 xbmc/pvr/channels/PVRChannel.cpp
@@ -212,7 +212,7 @@ bool CPVRChannel::UpdateFromClient(const CPVRChannel &channel)
CSingleLock lock(m_critSection);
if (m_strChannelName.IsEmpty())
SetChannelName(channel.ClientChannelName());
- if (m_strIconPath.IsEmpty()||(!m_strIconPath.Equals(channel.IconPath()) && !IsUserSetIcon()))
+ if (m_strIconPath.IsEmpty()||(!channel.IconPath().IsEmpty() && !m_strIconPath.Equals(channel.IconPath()) && !IsUserSetIcon()))
SetIconPath(channel.IconPath());
return m_bChanged;