File r897014.diff of Package kdepim4
Subject: kalarm: Fix kalarmautostart crash on logout
From: wstephenson@suse.de
Bug:
Patch-upstream: 897014
--- kalarm/autostart/autostart.cpp (revision 897013)
+++ kalarm/autostart/autostart.cpp (revision 897014)
@@ -64,6 +64,10 @@ int main(int argc, char *argv[])
AutostartApp::AutostartApp()
: KApplication(false) // initialise as non-GUI application
{
+ // Disable session management: there is no state to save, and
+ // disabling prevents a crash on logout before this app exits.
+ disableSessionManagement();
+
// Login session is starting up - need to wait for it to complete
// in order to avoid starting the client before it is restored by
// the session (where applicable).
--- kalarm/Changelog (revision 897013)
+++ kalarm/Changelog (revision 897014)
@@ -2,6 +2,7 @@ KAlarm Change Log
=== Version 2.0.7 --- 14 December 2008 ===
- Fix crash if KAlarm is activated again while restoring from previous session.
+- Fix kalarmautostart crash on logout while kalarmautostart is still running.
- Fix failure to update alarms in KOrganizer when Kontact is running.
- Fix toolbar configuration being lost after quitting KAlarm.
Index: kalarm/autostart/autostart.cpp
===================================================================
Index: kalarm/Changelog
===================================================================