diff options
author | larsu <Unknown> | 2012-10-05 11:16:17 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-10-05 11:16:17 -0500 |
commit | f9413135057b326177f6ae239a70ab10c02af9de (patch) | |
tree | 2fd08bcba0460880f1fd839419ca643b2ede7944 | |
parent | afa16b907401ab78c34bd8adf93a21a4f5072ec1 (diff) | |
parent | 618156d4f506a9abae79ee61895c29f00beeca49 (diff) | |
download | ayatana-indicator-datetime-f9413135057b326177f6ae239a70ab10c02af9de.tar.gz ayatana-indicator-datetime-f9413135057b326177f6ae239a70ab10c02af9de.tar.bz2 ayatana-indicator-datetime-f9413135057b326177f6ae239a70ab10c02af9de.zip |
Fix 12.10.0 bug that failed to check & see if e_cal_client_new() returned an error.
-rw-r--r-- | src/datetime-service.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index 1a37fde..f0c45c0 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -734,6 +734,12 @@ update_appointment_menu_items (gpointer unused) ESource *source = E_SOURCE (s->data); ECalClient *ecal = e_cal_client_new(source, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, &gerror); + if (!ecal) { + g_debug ("Cannot create ecal client: %s", gerror->message); + g_clear_error (&gerror); + continue; + } + icaltimezone* current_zone = icaltimezone_get_builtin_timezone(current_timezone); if (!current_zone) { // current_timezone may be a TZID? |