Fix missing songs in categories

This commit is contained in:
Flamefire committed 2014-08-09 17:58:49 +02:00
1 parent ced12ac064
commit 48527a4061
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ namespace Vocaluxe.Base
{
if (songPointer.SortString != "")
{
if (lastCategory == null || songPointer.SortString != lastCategory.Name)
if (lastCategory == null || String.Compare(songPointer.SortString, lastCategory.Name, StringComparison.CurrentCultureIgnoreCase) != 0)
{
lastCategory = new CCategory(songPointer.SortString);
_Categories.Add(lastCategory);
+1 -1
View File
@@ -155,7 +155,7 @@ namespace Vocaluxe.Base
list.Add(new CSongPointer(song.ID, value));
else
{
if (list.Count == 0)
if (values.Count == 0)
list.Add(new CSongPointer(song.ID, ""));
else
list.AddRange(values.Select(val => new CSongPointer(song.ID, val)));