https://bugs.kde.org/show_bug.cgi?id=373562
Bug ID: 373562 Summary: Inconsistent items selected count with groups in the main view Product: digikam Version: 5.3.0 Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: AlbumsView Assignee: [hidden email] Reporter: [hidden email] Target Milestone: --- When there are grouped items in an album the indication on the bottom left of the window about how many items are selected is off. It looks like in Thumbnail view the number on the left (currently selected items) counts selected items plus grouped items belonging to the selected items. The number on the right (total items) however only counts how many items are actually present in the current view. In my opinion the second is more useful, i.e. always show the numbers of selected items in the current view, regardless of grouping. In Tableview mode there is a different behaviour again: When "Hide grouped items" is active, the behaviour is the same as described above for the thumbnail view. When "Ignore grouping" is active the behaviour is correct except to an offset by one. So when just one item is selected, it counts 2 items selected and when all are selected it is total + 1. When "Show grouping in tree" is active, the same is the case. In addition no matter whether a group of images is expanded or not, selecting the first (parent) item counts all items in the group. Selecting a child item when the group is expanded counts as one image. This should also be true for the first/parent item when the group is expanded. -- You are receiving this mail because: You are the assignee for the bug. |
https://bugs.kde.org/show_bug.cgi?id=373562
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[hidden email] Component|AlbumsView |AlbumsView-Group -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=373562
--- Comment #1 from Simon <[hidden email]> --- Created attachment 102892 --> https://bugs.kde.org/attachment.cgi?id=102892&action=edit Fixes image counts for grouped images The attached patch should solves the described problem. It is related to https://bugs.kde.org/show_bug.cgi?id=372027 as it takes care of grouping when all items are requested (the referenced issue did this for selected items). In addition there was a bug in TableView::selectedImageInfos() where the currentIndex is compared to a list of row indexes. The currentIndex however always had column!=0, so they never matched. This caused the wrong selected image count (base offset of 1 or 2). -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=373562
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Inconsistent items selected |Inconsistent items selected |count with groups in the |count with groups in the |main view |main view [patch] -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=373562
--- Comment #2 from [hidden email] --- The patch sound acceptable as it's not too intrusive. Gilles Caulier -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=373562
Maik Qualmann <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit| |https://commits.kde.org/dig | |ikam/830f70e8ace3990520f114 | |e65300d1c5b6cb3a1c Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Version Fixed In| |5.4.0 --- Comment #3 from Maik Qualmann <[hidden email]> --- Git commit 830f70e8ace3990520f114e65300d1c5b6cb3a1c by Maik Qualmann. Committed on 20/12/2016 at 20:44. Pushed by mqualmann into branch 'master'. apply patch #102892 from Simon to fix image counts for grouped images and polish FIXED-IN: 5.4.0 M +2 -1 NEWS M +15 -10 app/items/imagecategorizedview.cpp M +3 -2 app/items/imagecategorizedview.h M +2 -2 app/views/tableview/tableview.cpp M +6 -4 app/views/tableview/tableview_model.cpp https://commits.kde.org/digikam/830f70e8ace3990520f114e65300d1c5b6cb3a1c -- You are receiving this mail because: You are the assignee for the bug. |
Free forum by Nabble | Edit this page |