From d80b2c5485b7f80325ffd84e4bacda05324b4a1b Mon Sep 17 00:00:00 2001 From: Jonathan Marshall Date: Sun, 11 Nov 2012 17:54:55 +1300 Subject: use UpdateInfo rather than replacing the entire item when updating it after a GUI_MSG_UPDATE_ITEM message. fixes #13525 --- xbmc/FileItem.cpp | 2 +- xbmc/GUIInfoManager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xbmc/FileItem.cpp b/xbmc/FileItem.cpp index 5a591e143b..1e9466dff2 100644 --- a/xbmc/FileItem.cpp +++ b/xbmc/FileItem.cpp @@ -3024,7 +3024,7 @@ bool CFileItemList::UpdateItem(const CFileItem *item) CFileItemPtr pItem = m_items[i]; if (pItem->IsSamePath(item)) { - *pItem = *item; + pItem->UpdateInfo(*item); return true; } } diff --git a/xbmc/GUIInfoManager.cpp b/xbmc/GUIInfoManager.cpp index 4c2093e097..7d26cb94d8 100644 --- a/xbmc/GUIInfoManager.cpp +++ b/xbmc/GUIInfoManager.cpp @@ -131,7 +131,7 @@ bool CGUIInfoManager::OnMessage(CGUIMessage &message) CFileItemPtr item = boost::static_pointer_cast(message.GetItem()); if (m_currentFile->IsSamePath(item.get())) { - *m_currentFile = *item; + m_currentFile->UpdateInfo(*item); return true; } } -- cgit v1.2.3