diff options
Diffstat (limited to 'calendar/gui/memos-component.c')
-rw-r--r-- | calendar/gui/memos-component.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/gui/memos-component.c b/calendar/gui/memos-component.c index 801fe1cf40..3c57846972 100644 --- a/calendar/gui/memos-component.c +++ b/calendar/gui/memos-component.c @@ -1013,7 +1013,8 @@ create_new_memo (MemosComponent *memo_component, gboolean is_assigned, MemosComp editor = memo_editor_new (ecal, flags); comp = cal_comp_memo_new_with_defaults (ecal); - g_signal_connect (editor, "object_created", G_CALLBACK (object_created_cb), e_memos_get_calendar_table (component_view->memos)); + if (component_view->memos) + g_signal_connect (editor, "object_created", G_CALLBACK (object_created_cb), e_memos_get_calendar_table (component_view->memos)); comp_editor_edit_comp (COMP_EDITOR (editor), comp); comp_editor_focus (COMP_EDITOR (editor)); |