Fix crash when starting vocaluxe without avatars.
This commit is contained in:
1 parent
127f9edfdc
commit
27e880f9e9
1 file changed
+9
-6
@@ -446,13 +446,16 @@ namespace Vocaluxe.Screens
|
|||||||
int selectedAvatarID = _SelectSlides[_SelectSlideAvatars].ValueIndex;
|
int selectedAvatarID = _SelectSlides[_SelectSlideAvatars].ValueIndex;
|
||||||
_SelectSlides[_SelectSlideAvatars].Clear();
|
_SelectSlides[_SelectSlideAvatars].Clear();
|
||||||
IEnumerable<CAvatar> avatars = CProfiles.GetAvatars();
|
IEnumerable<CAvatar> avatars = CProfiles.GetAvatars();
|
||||||
foreach (CAvatar avatar in avatars)
|
if (avatars != null)
|
||||||
{
|
{
|
||||||
_SelectSlides[_SelectSlideAvatars].AddValue(
|
foreach (CAvatar avatar in avatars)
|
||||||
Path.GetFileName(avatar.FileName),
|
{
|
||||||
null,
|
_SelectSlides[_SelectSlideAvatars].AddValue(
|
||||||
avatar.ID,
|
Path.GetFileName(avatar.FileName),
|
||||||
-1);
|
null,
|
||||||
|
avatar.ID,
|
||||||
|
-1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keep)
|
if (keep)
|
||||||
|
|||||||
Reference in new issue
Block a user