Permalink
Browse files

CGUIViewState: fix loading of view states using SortAttributeIgnoreFo…

…lders
  • Loading branch information...
1 parent aa9e185 commit 5ce3697a4b1f3f05630bd492e9b96d68b4e54177 @Montellese Montellese committed Jan 12, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/view/GUIViewState.cpp
@@ -292,7 +292,7 @@ void CGUIViewState::SetSortMethod(SortBy sortBy, SortAttribute sortAttributes /*
{
if (m_sortMethods[i].m_sortDescription.sortBy == sortBy &&
// don't care about SortAttributeIgnoreFolders as it wasn't part of the old sorting comparison
- m_sortMethods[i].m_sortDescription.sortAttributes == (sortAttributes & ~SortAttributeIgnoreFolders))
+ (m_sortMethods[i].m_sortDescription.sortAttributes & ~SortAttributeIgnoreFolders) == (sortAttributes & ~SortAttributeIgnoreFolders))
{
m_currentSortMethod = i;
break;

0 comments on commit 5ce3697

Please sign in to comment.