Comment 4 for bug 1061412

Revision history for this message
Kurt Smolderen (kurt.smolderen) wrote :

Sorry for not getting into this any sooner...

The cause of this behaviour has been found, but I need some thoughts on the appropriate fix.

Problem is the songs in a BeatBox.Album object are stored in a hashmap with the media is key and an integer as value => What's the purpose of this integer?

When dragging an album to the queue, the keys of the hashmap (the Media objects) are converted into a Collection with no particular order...

The same problem (displaying tracks in what seems to be a random order) would rise when the album info popup is shown, but for this window, the media files are explicitly reordered (FastList.reorder).

Most elegant solution IMHO is to adjust the Album class so that its media files are stored in an ordered way: first by track number, then by track title.

Any feedback is welcomed!