Move code to check next image is selected after removal to ContextManager

Review Request #112061 - Created Aug. 13, 2013 and submitted

Information
Aurélien Gâteau
gwenview
KDE/4.11
Reviewers
gwenview
This is necessary after this fix to KLinkItemSelectionModel [1]. Without this change Gwenview does not automatically advance to the next image when current image is removed.

It makes more sense anyway since there are multiple instances of ThumbnailView using the same model (or a proxy of it). Right now when a row of the model is removed every ThumbnailView instance checks the status of the current index. With this change, the check is done by the ContextManager, which exists only once.

[1]: https://git.reviewboard.kde.org/r/111953/


Removed images within a list, got correctly moved to the next one.
Aurélien Gâteau
Aurélien Gâteau
Review request changed

Status: Closed (submitted)

Loading...