Bug 464959 - Gwenview does not apply sorting settings when entering folder from Start page
Summary: Gwenview does not apply sorting settings when entering folder from Start page
Status: CONFIRMED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 22.12.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
: 444276 454694 (view as bug list)
Depends on:
Blocks: 473661
  Show dependency treegraph
 
Reported: 2023-01-28 21:09 UTC by Jens Lallensack
Modified: 2023-08-23 00:35 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Lallensack 2023-01-28 21:09:47 UTC
SUMMARY
***
"Sort by" -> "Rating" correctly sorts by rating. After closing gwenview and starting it again, however, this option is still selected as indicated in the drop-down menu "Menu" -> "Sort by". This suggests that the current folder is sorted by rating. In fact, however, the sorting is by name, not by rating: Only clicking on the (apparently already activated) "rating" entry of the pop-up will actually sort by rating.

The exactly same problem occurs with other sort options (e.g., "size") too.

***


STEPS TO REPRODUCE
1. Use dolphin to go to an folder with some image files. Assign ratings to them (either with dolphin or gwenview).
2. Click on one of the files to start gwenview. Switch to "Browse", and select "Menu" -> "Sort by" -> "Rating".
3. Close gwenview and start again to show an image of the image folder. Switch to "Browse" mode.

OBSERVED RESULT
The drop-down menu "Menu" -> "Sort by" shows that "Rating" is selected. It therefore seems to remember the setting of the previous session. However, the images are not sorted by rating, but by name.

EXPECTED RESULT
The images should be sorted by rating.
Comment 1 Oleksiy Zagorskyi 2023-05-30 09:36:20 UTC
Related to https://bugs.kde.org/show_bug.cgi?id=443168
Comment 2 Andrew Shark 2023-08-22 10:15:57 UTC
At step 3, you did not specify how exactly you start gwenview.
I cannot reproduce if I open gwenview by clicking an image from dolphin. Also, cannot reproduce when starting gwenview from start menu, then going to recent files, select some file, then switch to browse.

However, the issue is still there. Step 3 should be read as:
3. Close gwenview, then start Gwenview from start menu, then go to folder containing rated images [it is already in Browse mode].

Operating System: Arch Linux 
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Graphics Platform: Wayland
Gwenview: 23.07.80
Comment 3 Andrew Shark 2023-08-22 19:04:08 UTC
*** Bug 454694 has been marked as a duplicate of this bug. ***
Comment 4 Andrew Shark 2023-08-23 00:35:57 UTC
*** Bug 444276 has been marked as a duplicate of this bug. ***