After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 771570 - quick add popover doesn't update default calendar after change on first event creation
quick add popover doesn't update default calendar after change on first event...
Status: RESOLVED FIXED
Product: gnome-calendar
Classification: Applications
Component: User Interface
3.21.x
Other Linux
: Normal normal
: 3.26
Assigned To: GNOME Calendar maintainers
GNOME Calendar maintainers
Depends on:
Blocks:
 
 
Reported: 2016-09-17 03:55 UTC by Mohammed Sadiq
Modified: 2017-04-17 18:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
manager: add ::default-calendar property (4.06 KB, patch)
2016-09-28 01:30 UTC, Georges Basile Stavracas Neto
committed Details | Review
quick-add-popover: track default calendar (2.31 KB, patch)
2016-09-28 01:30 UTC, Georges Basile Stavracas Neto
committed Details | Review
manager: setup default calendar on event creation (1.02 KB, patch)
2016-09-28 01:35 UTC, Georges Basile Stavracas Neto
committed Details | Review

Description Mohammed Sadiq 2016-09-17 03:55:10 UTC
After the default calendar is changed, the first event creation using quick add popover (in month view) selects the old default calendar. The subsequent additions selects the right calendar.

This can cause severe bugs, say, like when the default calendar is removed.
Comment 1 Georges Basile Stavracas Neto 2016-09-28 01:30:04 UTC
Created attachment 336399 [details] [review]
manager: add ::default-calendar property

This property acts as a proxy to ESourceRegistry::default-calendar
and will be used by future patches to track when the default calendar
changes.
Comment 2 Georges Basile Stavracas Neto 2016-09-28 01:30:09 UTC
Created attachment 336400 [details] [review]
quick-add-popover: track default calendar

Update the selected calendar when the default one changes.
Comment 3 Georges Basile Stavracas Neto 2016-09-28 01:35:42 UTC
Created attachment 336401 [details] [review]
manager: setup default calendar on event creation

When an event is successfully created, make that the default source.
Comment 4 Georges Basile Stavracas Neto 2016-09-28 01:36:18 UTC
Thanks for the report.

Attachment 336399 [details] pushed as dfdcb7c - manager: add ::default-calendar property
Attachment 336400 [details] pushed as df13ac2 - quick-add-popover: track default calendar
Attachment 336401 [details] pushed as 10391ae - manager: setup default calendar on event creation