Bug 405224

Summary: KMail/Kontact mail list refreshed on (de)activation
Product: [Applications] kmail2 Reporter: Mykola Krachkovsky <w01dnick>
Component: message listAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mykola Krachkovsky 2019-03-08 15:49:59 UTC
SUMMARY
Each time main KMail/Kontact window is activated or deactivated its mail list is refreshed and currently selected mail is lost.

STEPS TO REPRODUCE
1. Open some mail directory (and keep in mind which mail was selected).
2. Select one or other mail (not the same which was selected on directory switch).
3. Switch to another app, for example Alt+F2 (Alt+Space) to run KRunner, that doesn't matter.

OBSERVED RESULT
I. Current directory content list is refreshed.
II. Selected mail switches back to that from step 1.
(NB Selected mail is kept on switching mail directory)

EXPECTED RESULT
I. I can't see a reason to refresh list on activation/deactivation, though maybe I'm wrong and there is some reason. But flashing to empty and showing list again doesn't look good.
II. At least selected mail should be kept on deactivation/activation.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed (snapshot 20190305).
KDE Plasma Version: 5.15.2
KDE Applications Version: 18.12.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.0
KMail/Kontact Version: 5.10.2
(XCB, not wayland)

ADDITIONAL INFORMATION
This strange behaviour might be (might be not) a trigger for next bugs:
https://bugs.kde.org/show_bug.cgi?id=405122
https://bugs.kde.org/show_bug.cgi?id=405220
Comment 1 Mykola Krachkovsky 2019-03-15 15:13:29 UTC
This looks like solved with 5.10.3.