[Bug 163479] Closing any window while KMail is minimized to the tray will quit the app
Thomas McGuire
Thomas.McGuire at gmx.net
Wed Jul 9 13:54:12 BST 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=163479
------- Additional Comments From Thomas.McGuire gmx net 2008-07-09 14:54 -------
OK, here's what dfaure suggested on IRC:
1. disable Qt's quitOnLastWindowClosed() in KMail and Kontact
2. Make it optional that KJobs do KGlobal::ref()/deref()
-> KJob::allowQuitWhileJobsAreRunning(bool)
3. KGlobal::deref() will then take care of quitting the event loop.
Both the mainwindows and the systemtray hold refs.
Instead of 1), it might also be possible to disable the WA_QuitOnClose flags for KDE mainwindows.
I'll need to investigate which jobs shouldn't be killed when quitting KMail, those jobs should call ref().
More information about the Kdepim-bugs
mailing list