Bug 334334

Summary: Defer button missing in alarm window after logging out and logging in again
Product: [Applications] kalarm Reporter: David Jarvie <djarvie>
Component: generalAssignee: David Jarvie <djarvie>
Status: CLOSED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In: 4.13.2

Description David Jarvie 2014-05-04 15:34:44 UTC
When an alarm window is restored after login, the Defer button is missing. This worked with Debian Squeeze, but doesn't work with Debian testing and unstable, Linux Mint Debian UP8, OpenSuse Tumbleweed.

Reproducible: Always

Steps to Reproduce:
1. Create a new display alarm set to trigger 1 minute from now.
2. Wait for the alarm to trigger - do not close or defer it.
3. Log out and log in again
Comment 1 David Jarvie 2014-05-04 16:23:57 UTC
The reason for this is that MessageWin::redisplayAlarms() only shows the Defer button if the alarm's collection is writable. However, when it checks the writable status using CollectionControlModel::isWritableEnabled(), the Akonadi collections haven't been initialised fully so that it thinks the collection is not writable. The fix is to wait until Akonadi collections have been initialised before redisplayAlarms() is executed.
Comment 2 David Jarvie 2014-05-10 17:07:23 UTC
This is now fixed - git commits 2178dbe20dcd928674c0f47e3f4836b407475d2a and a78a90f7246355a28d42430071cef12e4127da72.

Also fixed is the duplication of alarm windows after some are restored at login.