Skip to content

import-dialog: Fix default calendar search, fix double free in the writeable calendars model

By !474 (merged), we now use a GListModel to store the calendars in the import dialog. Nonetheless, we still used the GListStore API to search for the default calendar, which no longer works. This is fixed by introducing a linear search using the GListModel API.

Additionally, !474 (merged) introduced a tricky double free in gcal_create_writable_calendars_model, caused by passing an unowned reference to gtk_filter_list_model_new when the function expected an owned one.

Closes #1282 (closed)

Merge request reports

Loading