Review Request: Auto-save the playlist so it is not lost if Amarok crashes

Commit Hook null at kde.org
Fri Aug 26 23:58:04 UTC 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102444/#review6040
-----------------------------------------------------------


This review has been submitted with commit bde537bb2f150ee49e980e97e4bcffd72e4bdb0c by Alex Merry to branch master.

- Commit


On Aug. 26, 2011, 2:48 p.m., Alex Merry wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102444/
> -----------------------------------------------------------
> 
> (Updated Aug. 26, 2011, 2:48 p.m.)
> 
> 
> Review request for Amarok.
> 
> 
> Summary
> -------
> 
> One of the things that bugs me about Amarok is that if it crashes (as it tends to do on logout, for me), the playlist is lost, and next time you start it up it gives you the playlist from the last time it exited properly.
> 
> This fixes that by auto-saving the playlist state.  It schedules a save for 5 seconds in the future when a change is made to the playlist - any changes made withing those 5 seconds will not trigger a further save, but will be included in the scheduled save.  This prevents the disk being hammered when making a flurry of changes.
> 
> Possibly this timeout should be longer - 20 seconds?
> 
> 
> Diffs
> -----
> 
>   ChangeLog ca2d6561ac607ad3dd4886a33a357f3add0b2eaf 
>   src/playlist/PlaylistModel.h 21e5f2ca8a4fdb2ccf77c8ea2b3cb47bf2a1c5e8 
>   src/playlist/PlaylistModel.cpp 842095a11f649fd9a91f5bb53869ac607a552749 
> 
> Diff: http://git.reviewboard.kde.org/r/102444/diff
> 
> 
> Testing
> -------
> 
> Changed the playlist, waited 5 seconds, killed amarok (killall -9 amarok).  Starting up Amarok again displayed the modified playlist.
> 
> 
> Thanks,
> 
> Alex
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/amarok-devel/attachments/20110826/b96be212/attachment.html>


More information about the Amarok-devel mailing list