[Bug 185544] Kontact is sometimes started twice and crashes when closing the 2nd instance

Christophe Giboudeaux cgiboudeaux at gmail.com
Mon Feb 21 17:10:30 GMT 2011


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





--- Comment #129 from Christophe Giboudeaux <cgiboudeaux gmail com>  2011-02-21 18:09:48 ---
If someone builds kdepim 4.4.10, please try the following patch and check if
you still get the warning.
Now that two plugins are disabled, the only way to reproduce is to switch on
the mail module before logging off.

the workaround from comment #107 is not needed anymore.

Index: kontact/src/mainwindow.cpp
===================================================================
--- kontact/src/mainwindow.cpp  (révision 1222060)
+++ kontact/src/mainwindow.cpp  (copie de travail)
@@ -524,7 +524,7 @@
     QVariant loadOnStart = it->property( "X-KDE-KontactPartLoadOnStart" );
     QVariant hasPartProp = it->property( "X-KDE-KontactPluginHasPart" );

-    if ( !loadOnStart.isNull() && loadOnStart.toBool() ) {
+    if ( !loadOnStart.isNull() && loadOnStart.toBool() &&
!kapp->isSessionRestored()) {
       mDelayedPreload.append( plugin );
     }

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list