diff options
Diffstat (limited to 'calendar/pcs/cal-factory.c')
-rw-r--r-- | calendar/pcs/cal-factory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/pcs/cal-factory.c b/calendar/pcs/cal-factory.c index a404ee49f4..d962b22862 100644 --- a/calendar/pcs/cal-factory.c +++ b/calendar/pcs/cal-factory.c @@ -349,12 +349,12 @@ add_uri (gpointer key, gpointer value, gpointer data) switch (mode) { case GNOME_Evolution_Calendar_MODE_LOCAL: backend = lookup_backend (factory, uri_string); - if (backend == NULL && cal_backend_get_mode (backend) == CAL_MODE_LOCAL) + if (backend == NULL || cal_backend_get_mode (backend) != CAL_MODE_LOCAL) return; break; case GNOME_Evolution_Calendar_MODE_REMOTE: backend = lookup_backend (factory, uri_string); - if (backend == NULL && cal_backend_get_mode (backend) == CAL_MODE_REMOTE) + if (backend == NULL || cal_backend_get_mode (backend) != CAL_MODE_REMOTE) return; break; case GNOME_Evolution_Calendar_MODE_ANY: |