diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-tasks.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index 53922fb4df..10d180ef77 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -912,13 +912,13 @@ e_tasks_set_default_uri (ETasks *tasks, const char *str_uri) g_return_val_if_fail (str_uri != NULL, FALSE); priv = tasks->priv; - - ecal = g_hash_table_lookup (priv->clients, str_uri); + + model = e_calendar_table_get_model (E_CALENDAR_TABLE (priv->tasks_view)); + ecal = e_cal_model_get_client_for_uri (model, str_uri); if (!ecal) return FALSE; - model = e_calendar_table_get_model (E_CALENDAR_TABLE (priv->tasks_view)); - e_cal_model_set_default_client (model, ecal); + e_cal_model_set_default_client (model, ecal); return TRUE; } |