aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-10-10 22:37:14 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-10-10 22:37:14 +0800
commit1359335208dd9260b6b0541b692e534fa70bed7b (patch)
tree8d707e092305448cb3194b5b0a853c706b661da9 /calendar/pcs
parenta46bcc8084af31a5cb86b0b5305298e94250c5f9 (diff)
downloadgsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar
gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.gz
gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.bz2
gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.lz
gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.xz
gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.zst
gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.zip
fix logic checks
2001-10-10 JP Rosevear <jpr@ximian.com> * pcs/cal-factory.c (add_uri): fix logic checks * gui/dialogs/event-editor.c (event_editor_init): init the exisiting_org boolean (set_menu_sens): base sensitivity on existing_org boolean (event_editor_edit_comp): set exisiting_org boolean * gui/dialogs/task-editor.c: same as above * gui/calendar-offline-handler.c (add_connection): handle the protocol or host being unknown * cal-util/cal-component.c (cal_component_has_organizer): implement svn path=/trunk/; revision=13552
Diffstat (limited to 'calendar/pcs')
-rw-r--r--calendar/pcs/cal-factory.c4
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: