aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/tasks-component.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-01-03 18:08:07 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-01-03 18:08:07 +0800
commit7e71a8819e5a7bddc0046d9f1e995f248ee428df (patch)
treeae6e53c6784582c8fb96184232cc4e75c6496198 /calendar/gui/tasks-component.c
parent268dc11c79648cd5a4e532d41b07ad4576bdf815 (diff)
downloadgsoc2013-evolution-7e71a8819e5a7bddc0046d9f1e995f248ee428df.tar.gz
gsoc2013-evolution-7e71a8819e5a7bddc0046d9f1e995f248ee428df.tar.zst
gsoc2013-evolution-7e71a8819e5a7bddc0046d9f1e995f248ee428df.zip
** Fix for bug #506814
2008-01-03 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #506814 * gui/tasks-component.c: (create_new_todo): * gui/tasks-component.c: (create_new_todo): Add the signal only if the view is present. svn path=/trunk/; revision=34753
Diffstat (limited to 'calendar/gui/tasks-component.c')
-rw-r--r--calendar/gui/tasks-component.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c
index 4b998f3afa..e1b364c9fa 100644
--- a/calendar/gui/tasks-component.c
+++ b/calendar/gui/tasks-component.c
@@ -1000,7 +1000,8 @@ create_new_todo (TasksComponent *task_component, gboolean is_assigned, TasksComp
editor = task_editor_new (ecal, flags);
comp = cal_comp_task_new_with_defaults (ecal);
- g_signal_connect (editor, "object_created", G_CALLBACK (object_created_cb), e_tasks_get_calendar_table (component_view->tasks));
+ if (component_view)
+ g_signal_connect (editor, "object_created", G_CALLBACK (object_created_cb), e_tasks_get_calendar_table (component_view->tasks));
comp_editor_edit_comp (COMP_EDITOR (editor), comp);
if (is_assigned)