aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-02-18 16:50:22 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-02-18 16:50:22 +0000
commit0dbd158dd852f9389e6e29006abdc4a1f3ed54ba (patch)
tree0ded2c75d1e1198fc902574b7733224700119dbd
parent8d3f5f4f99e5c9efd56c194c80dbb0dc4e3990c8 (diff)
downloadusdx-0dbd158dd852f9389e6e29006abdc4a1f3ed54ba.tar.gz
usdx-0dbd158dd852f9389e6e29006abdc4a1f3ed54ba.tar.xz
usdx-0dbd158dd852f9389e6e29006abdc4a1f3ed54ba.zip
fix assembla ticket #91 - Preview does not stop
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2105 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--src/screens/UScreenSongJumpto.pas7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/screens/UScreenSongJumpto.pas b/src/screens/UScreenSongJumpto.pas
index 7f82bbec..d0fa907a 100644
--- a/src/screens/UScreenSongJumpto.pas
+++ b/src/screens/UScreenSongJumpto.pas
@@ -233,9 +233,12 @@ begin
ScreenSong.FixSelected;
//Play Correct Music
- if (ScreenSong.Interaction <> fLastPlayed) then
+ if (ScreenSong.Interaction <> fLastPlayed) or (CatSongs.VisibleSongs = 0) then
begin
- fLastPlayed := ScreenSong.Interaction;
+ if (CatSongs.VisibleSongs > 0) then
+ fLastPlayed := ScreenSong.Interaction
+ else
+ fLastPlayed := -1;
ScreenSong.ChangeMusic;
end;