Review Request: Fix crash in Albums context applet

James Duncan james.t.duncan at gmail.com
Thu Nov 4 21:02:05 CET 2010


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

Review request for Amarok.


Summary
-------

This patch fixes a crash in the Albums context applet.  If a recently
added album (one currently displayed in the Albums applet) is removed
from the collection, AlbumProxyModel::lessThan will crash asking for
the last element of an empty QVector.

In addition, the patch improves the efficiency of the comparator.


Diffs
-----

  src/context/applets/albums/AlbumsModel.cpp 577499b 
  src/context/applets/albums/AlbumsModel.h b899ddb 

Diff: http://git.reviewboard.kde.org/r/100134/diff


Testing
-------

Tested adding new albums and removing currently existing albums (both
those that were currently shown in the applet and ones not shown). No
crashes yet, and ordering has not been affected.


Thanks,

James

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/amarok-devel/attachments/20101104/c448cb2d/attachment.htm 


More information about the Amarok-devel mailing list