Skip to content
This repository
Browse code

fix wrong recreated history causing wrong sort order (because viewsta…

…te not found in db)
  • Loading branch information...
commit 0de775818d695268d4bf2c7b80e94c4a8b36c147 1 parent 7d8c737
Voyager1 Voyager1 authored

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

  1. +7 0 xbmc/windows/GUIMediaWindow.cpp
7 xbmc/windows/GUIMediaWindow.cpp
@@ -1355,6 +1355,13 @@ void CGUIMediaWindow::SetHistoryForPath(const CStdString& strDirectory)
1355 1355 }
1356 1356 }
1357 1357
  1358 + if (URIUtils::IsVideoDb(strPath))
  1359 + {
  1360 + CURL url(strParentPath);
  1361 + url.SetOptions(""); // clear any URL options from recreated parent path
  1362 + strParentPath = url.Get();
  1363 + }
  1364 +
1358 1365 URIUtils::AddSlashAtEnd(strPath);
1359 1366 m_history.AddPathFront(strPath);
1360 1367 m_history.SetSelectedItem(strPath, strParentPath);

0 comments on commit 0de7758

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