Deleted events still appear on the day view
Bug #1334883 reported by
Leo Arias
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Calendar App |
Fix Released
|
High
|
Jason |
Bug Description
I'm testing this on an up-to-date utopic desktop, running from trunk.
To reproduce:
Go to day view
Add an event
Open the added event
Delete it
You will be back at the day view, where the event is still visible.
This seems like a cache or lack of refresh, because if I close the app and open it again, the event is no longer there.
Changed in ubuntu-calendar-app: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in ubuntu-calendar-app: | |
assignee: | nobody → Jason (gerlowskija) |
Changed in ubuntu-calendar-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
So just as a quick note, it looks like Events are stored in the Calendar App in an EventListModel element, which looks like it's just a wrapper around the QtOrganizer: :OrganizerModel QML element. OrganizerModel uses saveItem() and removeItem() methods for changing the events in the list.
I added some logging, and was able to confirm that when the 'delete' icon is clicked from the "Event Details" page, removeItem() does get called.
This is all to say that I agree with Leo's guess that the page just isn't refreshed when an event is deleted. There doesn't seem to be any explicit refreshing done when new items are added, or existing ones are deleted. I'm going to dig into how this "refreshing" is/should-be done.