diff options
author | montellese <montellese@xbmc.org> | 2013-02-25 18:09:59 +0100 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2013-02-25 18:12:55 +0100 |
commit | fafeeb81f650bf3cc750d2e39c9697c80c9cc115 (patch) | |
tree | ed5d89c32463b01b70817cc781f5ed2e19d7a11e | |
parent | 744415cf2be0c44767d46c7be72d8752c3b67875 (diff) |
refresh the correct video viewed in the video info dialog (fixes #13676)
-rw-r--r-- | xbmc/video/windows/GUIWindowVideoBase.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp index fed607c35a..3a82a18ccb 100644 --- a/xbmc/video/windows/GUIWindowVideoBase.cpp +++ b/xbmc/video/windows/GUIWindowVideoBase.cpp @@ -456,6 +456,14 @@ bool CGUIWindowVideoBase::ShowIMDB(CFileItem *item, const ScraperPtr &info2) needsRefresh = pDlgInfo->NeedRefresh(); if (!needsRefresh) return pDlgInfo->HasUpdatedThumb(); + // check if the item in the video info dialog has changed and if so, get the new item + else if (pDlgInfo->GetCurrentListItem() != NULL) + { + item = pDlgInfo->GetCurrentListItem().get(); + + if (item->IsVideoDb() && item->HasVideoInfoTag()) + item->SetPath(item->GetVideoInfoTag()->GetPath()); + } } // quietly return if Internet lookups are disabled |