diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-02-18 16:50:22 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-02-18 16:50:22 +0000 |
commit | 0dbd158dd852f9389e6e29006abdc4a1f3ed54ba (patch) | |
tree | 0ded2c75d1e1198fc902574b7733224700119dbd /src | |
parent | 8d3f5f4f99e5c9efd56c194c80dbb0dc4e3990c8 (diff) | |
download | usdx-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
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/UScreenSongJumpto.pas | 7 |
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; |