Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 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);
Please sign in to comment.
Something went wrong with that request. Please try again.