diff options
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index a3947b1cba..8f9d974178 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -644,11 +644,15 @@ event_page_fill_component (CompEditorPage *page, CalComponent *comp) /* Categories */ cat = e_dialog_editable_get (priv->categories); - cal_component_set_categories (comp, cat); - + str = comp_editor_strip_categories (cat); if (cat) g_free (cat); + cal_component_set_categories (comp, str); + + if (str) + g_free (str); + /* Classification */ classif = e_dialog_radio_get (priv->classification_public, |