Deleting default calendar does not change default setting #726
Labels
Bitesize
Small, self-contained issue. Good for newcomers, and/or should be an easy fix.
Needs Design
Waiting for input from the UX team
Priority: Medium
Should be addressed when time allows
Status: Confirmed
Verified by someone other than the reporter
What Happened?
Originally reported in #553.
It's possible to delete the current default calendar. We don't account for that deletion and keep a reference to the newly deleted calendar as the default setting. So the calendar lists still show it by default, and it's possible to complete editing an event with a deleted calendar as the current calendar that the event will be saved into. When you do save the event, Calendar will still close the editor dialog but is unable to save the event.
Steps to Reproduce
You will now see that the currently selected calendar is the event you just deleted. This is already a symptom of the bug.
You may also save the event, and see that it silently fails to be created. You should also see the debug message I pasted above.
Expected Behavior
When deleting the default calendar, we should set a new default calendar out of the available ones (if there are any).
I'm not sure how to determine which calendar should be the new default. Any design guidance would be appreciated. (Paging @elementary/ux)
OS Version
6.x (Odin)
Software Version
Compiled from git
Log Output
Hardware Info
Dell XPS 13 9370
The text was updated successfully, but these errors were encountered: