Fixes #87 - Crash without songs.
This commit is contained in:
1 parent
5449d985ef
commit
2f01f4db15
1 file changed
+3
@@ -217,6 +217,9 @@ namespace Vocaluxe.Base
|
|||||||
public static void UpdateRandomSongList()
|
public static void UpdateRandomSongList()
|
||||||
{
|
{
|
||||||
_SongsForRandom.Clear();
|
_SongsForRandom.Clear();
|
||||||
|
if (NumSongsVisible == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
//Calc avarage sing-count
|
//Calc avarage sing-count
|
||||||
int totalCounts = 0;
|
int totalCounts = 0;
|
||||||
foreach (CSong song in VisibleSongs)
|
foreach (CSong song in VisibleSongs)
|
||||||
|
|||||||
Reference in new issue
Block a user