From 62db85093aa98056e1a81c475137e7d10a9d9028 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Fri, 23 Mar 2012 14:54:53 +0100 Subject: [PATCH] fixed bg music pause when tabs == off --- Vocaluxe/Screens/CScreenSong.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Vocaluxe/Screens/CScreenSong.cs b/Vocaluxe/Screens/CScreenSong.cs index c336e187..92b9820f 100644 --- a/Vocaluxe/Screens/CScreenSong.cs +++ b/Vocaluxe/Screens/CScreenSong.cs @@ -177,12 +177,12 @@ namespace Vocaluxe.Screens Texts[htTexts(TextCategory)].Text = CSongs.GetActualCategoryName(); int song = SongMenus[htSongMenus(SongMenu)].GetActualSelection(); - if ((CSongs.Category >= 0) && (song >= 0) && song < CSongs.VisibleSongs.Length) + if ((CSongs.Category >= 0 || CConfig.Tabs == EOffOn.TR_CONFIG_OFF) && song >= 0 && song < CSongs.VisibleSongs.Length) { Texts[htTexts(TextSelection)].Text = CSongs.VisibleSongs[song].Artist + " - " + CSongs.VisibleSongs[song].Title; CBackgroundMusic.Pause(); } - else if ((CSongs.Category == -1) && (song >= 0) && song < CSongs.Categories.Length) + else if (CSongs.Category == -1 && song >= 0 && song < CSongs.Categories.Length) { Texts[htTexts(TextSelection)].Text = CSongs.Categories[song].Name; CBackgroundMusic.Play();