Current collection status info in top of lighttable is not updated when changing something in current collection
How to reproduce:
1. Switch to LT
2. Select view "all exept rejected"
3. Click on thumbnail, there will be line in top: "1 image of N" in current collection is selected", where is N - num of images in collection
4. reject selected image
5. That line in top still says the same: "1 image of N" in current collection is selected", while it should "0 image of n" in current collection is selected", where n = N-1
(<jcsogo>) that actually happens with every filter
(<jcsogo>) It happens always that you can change something that is used in a collection: ratings, colorlabels, tags and metadata
Merge remote-tracking branch 'upstream/pr/1353'
handle case where a LIMIT statement is not part of the prepared SQL statement
feature-10369: remove trailing spaces
feature-10369: address pull request comments
feature-10369: address unused argument warning