mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
calendar: Handle calendar-server errors
The current code assumes that the GetEvents call will always receive, causing an exception in the error case. https://bugzilla.gnome.org/show_bug.cgi?id=686805
This commit is contained in:
parent
599f2f43e3
commit
a4e29e1244
1 changed files with 2 additions and 1 deletions
|
|
@ -270,8 +270,9 @@ const DBusEventSource = new Lang.Class({
|
|||
this._loadEvents(false);
|
||||
},
|
||||
|
||||
_onEventsReceived: function([appointments]) {
|
||||
_onEventsReceived: function(results, error) {
|
||||
let newEvents = [];
|
||||
let appointments = results ? results[0] : null;
|
||||
if (appointments != null) {
|
||||
for (let n = 0; n < appointments.length; n++) {
|
||||
let a = appointments[n];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue