[UPnP] we shouldn't sort unknown container listings, as this squashes th... #1568

Merged
merged 1 commit into from Oct 10, 2012
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: