Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media library: fix path history navigation #6108

Merged
merged 3 commits into from
Jan 7, 2015

Conversation

Montellese
Copy link
Member

This fixes an issue introduced by #5941 (actually we were just lucky that it didn't hit us before) which broke path history navigation when e.g. jumping into a tvshow smartplaylist directly from the home screen as described by @HitcherUK in http://forum.kodi.tv/showthread.php?tid=211165&pid=1876847#pid1876847.

The issue basically is/was that we compared the original start path with the determined parent path and the determined parent path had a trailing slash whereas the original start path didn't. Furthermore the logic in CGUIMediaWindow::SetHistoryForPath() always adds a trailing slash to all paths being stored in the path history. But that can result in invalid paths if the path was pointing to a file that is evaluated as a directory (e.g. XSP paths). We don't do that in CDirectoryHistory::AddPath() either so I fixed that as well.

@Montellese Montellese added Type: Fix non-breaking change which fixes an issue Backport: Needed labels Jan 4, 2015
@Jalle19
Copy link
Member

Jalle19 commented Jan 4, 2015

I take it http://trac.kodi.tv/ticket/15668 would be fixed by this, could you check it out and maybe change the commit message(s) so it gets closed on merge?

@Montellese
Copy link
Member Author

@Jalle19: Yes I was just too lazy to look for it ;-)

@Montellese
Copy link
Member Author

jenkins build this please

@Montellese Montellese added this to the Helix 15.0-alpha1 milestone Jan 5, 2015
Montellese added a commit that referenced this pull request Jan 7, 2015
media library: fix path history navigation
@Montellese Montellese merged commit c1bb673 into xbmc:master Jan 7, 2015
@Montellese Montellese deleted the fix_media_library_navigation branch January 7, 2015 07:55
phil65 pushed a commit to phil65/xbmc that referenced this pull request Jan 10, 2015
…tion

media library: fix path history navigation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport: Done Type: Fix non-breaking change which fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants