Review Request 111804: Fix a crash on startup
Konrad Zemek
konrad.zemek at gmail.com
Wed Jul 31 01:20:04 UTC 2013
> On July 30, 2013, 10:04 p.m., Edward Hades Toroshchin wrote:
> > src/playlist/PlaylistSortWidget.cpp, line 73
> > <http://git.reviewboard.kde.org/r/111804/diff/1/?file=175527#file175527line73>
> >
> > If the sort token has neither "asc" nor "des" suffix, it won't be added to the sort at all.
> >
> > I suggest you make the line 73 something like that:
> >
> > if( levelParts.count() < 2 || levelParts.at( 1 ) == QString( "asc" ) )
> >
> > This way it will assume ascending order by default, if no specifier is present.
> >
> > Please check, if this indeed compiles and works. Please also check that the "Shuffle" playlist sort works after Amarok restart. (I believe it isn't in the current solution.)
I think that we can safely file tokens without either "asc" or "des" as ill-formed, as with removal of the "Shuffle" special case everything is either one or the other.
- Konrad
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/111804/#review36847
-----------------------------------------------------------
On July 30, 2013, 8:16 p.m., Fabian Kosmale wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/111804/
> -----------------------------------------------------------
>
> (Updated July 30, 2013, 8:16 p.m.)
>
>
> Review request for Amarok.
>
>
> Description
> -------
>
> Without this patch, Amarok would crash with
> ASSERT failure in QList<T>::at: "index out of range"
> when amarokrc contained
> [Playlist Sorting]
> SortPath=Shuffle
>
>
> Diffs
> -----
>
> src/playlist/PlaylistSortWidget.cpp 384e4a0eaa28f82eb27665a1a0d497e018a61161
>
> Diff: http://git.reviewboard.kde.org/r/111804/diff/
>
>
> Testing
> -------
>
> Compiled and started Amarok. It doesn't crash anymore.
>
>
> Thanks,
>
> Fabian Kosmale
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/amarok-devel/attachments/20130731/85b23ad5/attachment.html>
More information about the Amarok-devel
mailing list