Bug 490308

Summary: Cannot remove multiple entries from Recent Documents at once
Product: [Applications] kate Reporter: Abi T. <abithap01>
Component: applicationAssignee: Waqar Ahmed <w.ahmed23>
Status: RESOLVED FIXED    
Severity: minor CC: lassi.vaatamoinen
Priority: NOR    
Version First Reported In: 24.05.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Abi T. 2024-07-15 14:40:15 UTC
SUMMARY
Trying to remove multiple entries from the Recent Documents (and Projects) menu from Kate (or KWrite, for that manner) only succeeds in removing the last selected entry from the menu.

STEPS TO REPRODUCE
1. Open multiple files in Kate (or KWrite)
2. Close all files to show the Welcome screen
3. Select multiple entries in the Recent Documents (and Projects) menu
4. Right-click the entries and click "Remove"

OBSERVED RESULT
All selected files would be removed from the menu

EXPECTED RESULT
Only the last selected file is removed from the menu

SOFTWARE/OS VERSIONS
Fedora 40 Workstation - KDE Plasma Spin 
KDE Plasma 6.1.2
KDE Frameworks 6.3.0
Qt Version 6.7.2
Comment 1 Bug Janitor Service 2024-07-17 11:56:21 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1542
Comment 2 Waqar Ahmed 2024-07-18 13:25:06 UTC
Git commit 3fc805c50b4f04065c811804c3e027c769068110 by Waqar Ahmed.
Committed on 17/07/2024 at 11:55.
Pushed by waqar into branch 'master'.

Allow removing multiple items from welcome page

M  +7    -3    apps/lib/welcomeview/welcomeview.cpp

https://invent.kde.org/utilities/kate/-/commit/3fc805c50b4f04065c811804c3e027c769068110
Comment 3 Waqar Ahmed 2024-07-19 11:16:16 UTC
Git commit 09b8df68ce08124a4d4c22d90797a0f93af256d8 by Waqar Ahmed.
Committed on 19/07/2024 at 11:15.
Pushed by waqar into branch 'release/24.05'.

Allow removing multiple items from welcome page
(cherry picked from commit 3fc805c50b4f04065c811804c3e027c769068110)

M  +7    -3    apps/lib/welcomeview/welcomeview.cpp

https://invent.kde.org/utilities/kate/-/commit/09b8df68ce08124a4d4c22d90797a0f93af256d8