[kmail2] [Bug 312460] Kmail can not show correct number of unread mails

Christian Mollekopf mollekopf at kolabsys.com
Tue May 7 16:38:44 BST 2013


https://bugs.kde.org/show_bug.cgi?id=312460

--- Comment #21 from Christian Mollekopf <mollekopf at kolabsys.com> ---
Figured it out at last, here's what's happening:
* To reproduce:
** open kmail
** open a mail in a separate window
** close the mainwindow only (leave the editor/viewer running)
** open kmail again => voila you're in the broken state

KMMainWidget::destruct calls
"disconnect( kmkernel->folderCollectionMonitor(),
SIGNAL(itemAdded(Akonadi::Item,Akonadi::Collection)), 0, 0)"
disconnecting everything from the monitor instead of only itself.

Because the open editor keeps the kmkernel running, and the kmkernel holds the
monitor AND the etm (which are now disconnected). Starting kmail again results
in it attaching to a model without connected monitor.

Really a good example on why singletons are evil.

A fix will be up shortly.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list