Skip to content
This repository
Browse code

refresh the correct video viewed in the video info dialog (fixes #13676)

  • Loading branch information...
commit fafeeb81f650bf3cc750d2e39c9697c80c9cc115 1 parent 744415c
Sascha Montellese authored February 25, 2013

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  xbmc/video/windows/GUIWindowVideoBase.cpp
8  xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -456,6 +456,14 @@ bool CGUIWindowVideoBase::ShowIMDB(CFileItem *item, const ScraperPtr &info2)
456 456
     needsRefresh = pDlgInfo->NeedRefresh();
457 457
     if (!needsRefresh)
458 458
       return pDlgInfo->HasUpdatedThumb();
  459
+    // check if the item in the video info dialog has changed and if so, get the new item
  460
+    else if (pDlgInfo->GetCurrentListItem() != NULL)
  461
+    {
  462
+      item = pDlgInfo->GetCurrentListItem().get();
  463
+
  464
+      if (item->IsVideoDb() && item->HasVideoInfoTag())
  465
+        item->SetPath(item->GetVideoInfoTag()->GetPath());
  466
+    }
459 467
   }
460 468
 
461 469
   // quietly return if Internet lookups are disabled

0 notes on commit fafeeb8

Please sign in to comment.
Something went wrong with that request. Please try again.