Summary: | Amarok 2.2.0: Repeat Track doesn't work if Random is enabled | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Michal Ziabkowski <mziab> |
Component: | general | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.2.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Michal Ziabkowski
2009-10-15 00:56:19 UTC
*** This bug has been marked as a duplicate of bug 178056 *** Ah, sorry about the dupe. Anyway, I made something like this: --- src/playlist/PlaylistActions.cpp 2009-10-15 02:36:36.083025219 +0200 +++ src/playlist/PlaylistActions.cpp.new 2009-10-15 02:51:23.451025250 +0200 @@ -275,7 +275,9 @@ { if ( Amarok::randomTracks() ) { - if( Amarok::favorNone() ) + if( Amarok::repeatTrack() ) + m_navigator = new RepeatTrackNavigator(); + else if( Amarok::favorNone() ) m_navigator = new RandomTrackNavigator(); else m_navigator = new FavoredRandomTrackNavigator(); This might not be the optimal approach and I'm not sure what the behaviour for Random + Repeat Album should be. Regardless, at least the Repeat Track + Random combo works as I'd expect it to, giving priority to repeating the track. Michael, I copy your comment over to the original bug, comments in a bug marked as duplicate will not be seen by the devs. |