diff options
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index d204de56e8..b298952a6e 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -722,7 +722,11 @@ comp_editor_append_page (CompEditor *editor, ECalComponent *comp; comp = comp_editor_get_current_comp (editor); - comp_editor_page_fill_widgets (page, comp); + if (!comp_editor_page_fill_widgets (page, comp)) { + /* dont add the pagge if there is an error */ + g_object_unref (comp); + return; + } g_object_unref (comp); } |