Summary: | random mode: first track not random | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Damir Perisa <damir.perisa> |
Component: | general | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 0.9 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Damir Perisa
2004-03-09 01:33:34 UTC
fixed in cvs... I am still having this problem in amarok-CVS 1.1, which was not present in amarok 1.0.1 I also have this problem in cvs. In my opinion a _must_ fix for amaroK 1.1 i'm using 1.0.2 now, and it has this bug too - didn't have time to check the actual cvs, but if you say it has, i'm going to reopen it reopen because of comment #3 CVS commit by mhowell: Make the first track that is played be random if random mode is on. CCMAIL: 77055-done@bugs.kde.org M +7 -1 playlist.cpp 1.287 --- kdeextragear-1/amarok/src/playlist.cpp #1.286:1.287 @@ -437,5 +437,11 @@ void Playlist::playCurrentTrack() { - activate( currentTrack() ? currentTrack() : *MyIt( this ) ); + if ( !currentTrack() ) + playNextTrack(); + + //we must do this even if the above is correct + //since the engine is not loaded the first time the user presses play + //then calling the next() function wont play it + activate( currentTrack() ); } |