Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1568 from alcoheca/keep-orig-sort-order

[UPnP] we shouldn't sort unknown container listings
  • Loading branch information...
commit f0ee3fc8ca946922c5628b3a5f76c3321183e212 2 parents 89d4ce7 + 146b57d
@elupus elupus authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/filesystem/UPnPDirectory.cpp
View
5 xbmc/filesystem/UPnPDirectory.cpp
@@ -487,7 +487,10 @@ CUPnPDirectory::GetDirectory(const CStdString& strPath, CFileItemList &items)
max_count = it->second;
}
}
- items.SetContent(GetContentMapping(max_string));
+ std::string content = GetContentMapping(max_string);
+ items.SetContent(content);
+ if (content == "unknown")
+ items.AddSortMethod(SORT_METHOD_NONE, 551, LABEL_MASKS("%L", "%I", "%L", ""));
}
cleanup:
Please sign in to comment.
Something went wrong with that request. Please try again.