aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/tasks-control.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/tasks-control.c')
-rw-r--r--calendar/gui/tasks-control.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/calendar/gui/tasks-control.c b/calendar/gui/tasks-control.c
index 08e363fe8e..4f892c486d 100644
--- a/calendar/gui/tasks-control.c
+++ b/calendar/gui/tasks-control.c
@@ -174,11 +174,21 @@ tasks_control_set_property (BonoboPropertyBag *bag,
gpointer user_data)
{
ETasks *tasks = user_data;
+ char *uri;
switch (arg_id) {
case TASKS_CONTROL_PROPERTY_URI_IDX:
- e_tasks_open (tasks, BONOBO_ARG_GET_STRING (arg));
+ uri = BONOBO_ARG_GET_STRING (arg);
+ if (!e_tasks_open (tasks, uri)) {
+ char *msg;
+
+ msg = g_strdup_printf (_("Could not load the tasks in `%s'"), uri);
+ gnome_error_dialog_parented (
+ msg,
+ GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (tasks))));
+ g_free (msg);
+ }
break;
default: