Fix playlist "Insert" a bit.
commit5502f979dc4e456f5b767fb1553c0911d2765846
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Sun, 8 Mar 2009 17:18:18 +0000 (8 17:18 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Sun, 8 Mar 2009 17:18:18 +0000 (8 17:18 +0000)
treeca45fdd389f8e58cd35f55ce08b64d7ac1a03027
parent199e3a484f1e50ced980f5b6d05fa121967f7636
Fix playlist "Insert" a bit.
If insert was used to create a new playlist (e.g. inserting without audio playing), the insert position wasn't updated. Thus, the playlist created was in reversed order (except for the first song).
This was the reason "Insert last" was actually used as Insert in this case. BUT, this one doesn't update the insert position eiterh, but the order of the songs is fine, at least (due to appending).
Now, insert always updates the insert position properly, so that the aforementioned bugs are fixed. Insert is always used now.
Other impact: If you create a playlist using insert, every subsequent insert will append songs at the end of the playlist,if you start playback pressing select on songs, every subsequent insert will insert after the current track.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20241 a1c6a512-1295-4272-9138-f99709370657
apps/onplay.c
apps/playlist.c