Bug 486692

Summary: Two Kontact windows after quitting Kontact with a Composer window open
Product: [Applications] kontact Reporter: Grósz Dániel <groszdanielpub>
Component: mailAssignee: kdepim bugs <pim-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kramski
Priority: NOR    
Version First Reported In: 6.0.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Grósz Dániel 2024-05-06 22:19:05 UTC
SUMMARY
If I quit Kontact while composing an e-mail, then after starting Kontact again, two mail Kontact windows appear, and two composer windows for each one that was open before quitting Kontact.

The windows mostly behave normally, but e-mails don't show up in one of the main windows. The way to exit this state is to close all the Composer windows first, then quit both main windows (at that point Kontact segfaults), then start Kontact again. After that, Kontact behaves normally.

STEPS TO REPRODUCE
1. Start a new e-mail in the Mail component of Kontact, or reply to an e-mail. Optionally make some changes in the e-mail, though it doesn't seem to be needed.
2. Quit Kontact, for instance with Ctrl+Q in the main window.
3. Start Kontact again.

OBSERVED RESULT
Two main Kontact windows, and two Composer windows.

EXPECTED RESULT
One main Kontact window, and one Composer window with the e-mail I started writing.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240503
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.7-1-default (64-bit)
Graphics Platform: X11
Comment 1 kramski 2025-03-26 21:10:39 UTC
Finally a precise description of what I have been suffering for some time! Thank you also for the instructions on how to leave this state.

This is still a problem with Kontact 6.3.3. (24.12.3).

However, my way of reproducing it about 75% of the time is slightly different:

STEPS TO REPRODUCE
1. Open an existing e-mail in the Mail component of Kontact via double click.
2. Reply to this e-mail. 
2. Quit Kontact, for instance with Ctrl+Q in the main window.
3. Start Kontact again.

Details of my box:

KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.7-arch1-1 (64-bit)
Graphics Platform: X11