Bug 334334 - Defer button missing in alarm window after logging out and logging in again
Summary: Defer button missing in alarm window after logging out and logging in again
Status: CLOSED FIXED
Alias: None
Product: kalarm
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-04 15:34 UTC by David Jarvie
Modified: 2020-08-17 23:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.13.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.