From 933a26b0ed9dd8337ffb5a24d7934a35adbdd0f8 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 26 Sep 2011 11:08:46 +0200 Subject: Bug #657170 - Disallow creating assigned tasks when not supported --- calendar/gui/dialogs/task-page.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'calendar/gui/dialogs/task-page.c') diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index d88976be75..e0aa030358 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -290,6 +290,12 @@ sensitize_widgets (TaskPage *tpage) gchar *tmp = g_strconcat ("", _("Task cannot be fully edited, because you are not the organizer"), "", NULL); task_page_set_info_string (tpage, GTK_STOCK_DIALOG_INFO, tmp); g_free (tmp); + } else if ((flags & COMP_EDITOR_IS_ASSIGNED) != 0 && e_client_check_capability (E_CLIENT (client), CAL_STATIC_CAPABILITY_NO_TASK_ASSIGNMENT)) { + gchar *tmp = g_strconcat ("", _("Task cannot be edited, because the selected task list does not support assigned tasks"), "", NULL); + task_page_set_info_string (tpage, GTK_STOCK_DIALOG_INFO, tmp); + g_free (tmp); + sens = FALSE; + read_only = TRUE; } else if (!check_starts_in_the_past (tpage)) { task_page_set_info_string (tpage, priv->subscriber_info_text ? GTK_STOCK_DIALOG_INFO : NULL, priv->subscriber_info_text); } -- cgit v1.2.3