diff options
Diffstat (limited to 'calendar/modules/e-task-shell-view-private.c')
-rw-r--r-- | calendar/modules/e-task-shell-view-private.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/calendar/modules/e-task-shell-view-private.c b/calendar/modules/e-task-shell-view-private.c index e1e14b2547..9c6a3a94bb 100644 --- a/calendar/modules/e-task-shell-view-private.c +++ b/calendar/modules/e-task-shell-view-private.c @@ -595,6 +595,9 @@ void e_task_shell_view_open_task (ETaskShellView *task_shell_view, ECalModelComponent *comp_data) { + EShell *shell; + EShellView *shell_view; + EShellWindow *shell_window; CompEditor *editor; CompEditorFlags flags = 0; ECalComponent *comp; @@ -605,6 +608,10 @@ e_task_shell_view_open_task (ETaskShellView *task_shell_view, g_return_if_fail (E_IS_TASK_SHELL_VIEW (task_shell_view)); g_return_if_fail (E_IS_CAL_MODEL_COMPONENT (comp_data)); + shell_view = E_SHELL_VIEW (task_shell_view); + shell_window = e_shell_view_get_shell_window (shell_view); + shell = e_shell_window_get_shell (shell_window); + uid = icalcomponent_get_uid (comp_data->icalcomp); editor = comp_editor_find_instance (uid); @@ -626,7 +633,7 @@ e_task_shell_view_open_task (ETaskShellView *task_shell_view, if (!e_cal_component_has_attendees (comp)) flags |= COMP_EDITOR_USER_ORG; - editor = task_editor_new (comp_data->client, flags); + editor = task_editor_new (comp_data->client, shell, flags); comp_editor_edit_comp (editor, comp); g_object_ref (comp); |