Skip to content
Browse files

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

…te not found in db)
  • Loading branch information...
1 parent 7d8c737 commit 0de775818d695268d4bf2c7b80e94c4a8b36c147 @Voyager1 Voyager1 committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 xbmc/windows/GUIMediaWindow.cpp
View
7 xbmc/windows/GUIMediaWindow.cpp
@@ -1355,6 +1355,13 @@ void CGUIMediaWindow::SetHistoryForPath(const CStdString& strDirectory)
}
}
+ if (URIUtils::IsVideoDb(strPath))
+ {
+ CURL url(strParentPath);
+ url.SetOptions(""); // clear any URL options from recreated parent path
+ strParentPath = url.Get();
+ }
+
URIUtils::AddSlashAtEnd(strPath);
m_history.AddPathFront(strPath);
m_history.SetSelectedItem(strPath, strParentPath);

0 comments on commit 0de7758

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