diff options
author | Jonathan Marshall <jmarshall@never.you.mind> | 2012-11-11 17:54:55 +1300 |
---|---|---|
committer | Jonathan Marshall <jmarshall@never.you.mind> | 2012-11-11 17:54:55 +1300 |
commit | d80b2c5485b7f80325ffd84e4bacda05324b4a1b (patch) | |
tree | 52fb3273e78f0023bec22c0bc28862db8c55fadf | |
parent | 67431a3c473b025135008b30078af0ed31053c47 (diff) |
use UpdateInfo rather than replacing the entire item when updating it after a GUI_MSG_UPDATE_ITEM message. fixes #13525
-rw-r--r-- | xbmc/FileItem.cpp | 2 | ||||
-rw-r--r-- | 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<CFileItem>(message.GetItem()); if (m_currentFile->IsSamePath(item.get())) { - *m_currentFile = *item; + m_currentFile->UpdateInfo(*item); return true; } } |