Skip to content
Browse files

Merge pull request #1985 from Voyager1/fix_trac_13777

fix wrong recreated history causing wrong sort order - fixes #13777
  • Loading branch information...
2 parents 7d8c737 + 0de7758 commit 84fe3114d61cf95275f6f987f9889647bd77b546 @Voyager1 Voyager1 committed Dec 27, 2012
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 84fe311

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