Bug 503517

Summary: Deleting last email in a folder does not clear preview pane.
Product: [Applications] kmail2 Reporter: Kosmas Mackrogamvrakis <kosmas>
Component: foldersAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: pre deletion
after deletion

Description Kosmas Mackrogamvrakis 2025-04-29 10:33:08 UTC
SUMMARY
When deleting last email in a folder it does not clear preview pane.

STEPS TO REPRODUCE
1. Go to an imap (not tested other types) folder with some emails
2. Delete emails (hitting delete or click delete)

OBSERVED RESULT
On preview pane, the last deleted email apperars.

EXPECTED RESULT
No mail to be displayed on reading pane.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.17
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.3
Kernel Version: 6.12.21-gentoo-x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 6650 XT
Comment 1 Kosmas Mackrogamvrakis 2025-04-29 10:47:04 UTC
Created attachment 180766 [details]
pre deletion

Pre deletetion
Comment 2 Kosmas Mackrogamvrakis 2025-04-29 10:47:25 UTC
Created attachment 180767 [details]
after deletion

After deletion
Comment 3 Colin J Thomson 2025-04-29 18:25:07 UTC
This is a dupe of a very old bug and FWIW it's still present in git master.

*** This bug has been marked as a duplicate of bug 317933 ***