aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-03-04 00:40:43 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-03-04 00:40:43 +0800
commit8e0c48835a78f06aa33dff7b2d2c4c1792df1bbf (patch)
tree6c23e97054dc69ab29054854da9891bb12ad3205 /calendar
parentb487312e19bde880e9ea4d76258fd8f7e2eae314 (diff)
downloadgsoc2013-evolution-8e0c48835a78f06aa33dff7b2d2c4c1792df1bbf.tar.gz
gsoc2013-evolution-8e0c48835a78f06aa33dff7b2d2c4c1792df1bbf.tar.zst
gsoc2013-evolution-8e0c48835a78f06aa33dff7b2d2c4c1792df1bbf.zip
prevent from adding the same client more than once.
2004-03-03 Rodrigo Moya <rodrigo@ximian.com> * gui/e-cal-model.c (e_cal_model_add_client): prevent from adding the same client more than once. svn path=/trunk/; revision=24951
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/e-cal-model.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index b9ee22c500..42ccfadf4b 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-03 Rodrigo Moya <rodrigo@ximian.com>
+
+ * gui/e-cal-model.c (e_cal_model_add_client): prevent from adding
+ the same client more than once.
+
2004-03-02 Rodrigo Moya <rodrigo@ximian.com>
* gui/cal-search-bar.c: added support for searching the location
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index 26283e3b32..750e435767 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -1335,6 +1335,9 @@ e_cal_model_add_client (ECalModel *model, ECal *client)
priv = model->priv;
+ if (e_cal_model_get_client_for_uri (model, e_cal_get_uri (client)))
+ return;
+
if (e_cal_get_load_state (client) == E_CAL_LOAD_LOADED)
add_new_client (model, client);
else