Fix missing songs in categories
This commit is contained in:
1 parent
ced12ac064
commit
48527a4061
2 files changed
+2
-2
No files matched your search
@@ -71,7 +71,7 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
if (songPointer.SortString != "")
|
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);
|
lastCategory = new CCategory(songPointer.SortString);
|
||||||
_Categories.Add(lastCategory);
|
_Categories.Add(lastCategory);
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ namespace Vocaluxe.Base
|
|||||||
list.Add(new CSongPointer(song.ID, value));
|
list.Add(new CSongPointer(song.ID, value));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (list.Count == 0)
|
if (values.Count == 0)
|
||||||
list.Add(new CSongPointer(song.ID, ""));
|
list.Add(new CSongPointer(song.ID, ""));
|
||||||
else
|
else
|
||||||
list.AddRange(values.Select(val => new CSongPointer(song.ID, val)));
|
list.AddRange(values.Select(val => new CSongPointer(song.ID, val)));
|
||||||
|
|||||||
Reference in new issue
Block a user