aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-10-16 17:37:34 +0800
committerMilan Crha <mcrha@redhat.com>2009-10-16 17:37:34 +0800
commit14c68f8e45dad27b09047e03929517111344219f (patch)
tree895c03a9c3072953be9558771785f947849266ea /calendar/gui/e-cal-model.c
parent93040de356b53196e097099f46d9a6ea6718e7e6 (diff)
downloadgsoc2013-evolution-14c68f8e45dad27b09047e03929517111344219f.tar
gsoc2013-evolution-14c68f8e45dad27b09047e03929517111344219f.tar.gz
gsoc2013-evolution-14c68f8e45dad27b09047e03929517111344219f.tar.bz2
gsoc2013-evolution-14c68f8e45dad27b09047e03929517111344219f.tar.lz
gsoc2013-evolution-14c68f8e45dad27b09047e03929517111344219f.tar.xz
gsoc2013-evolution-14c68f8e45dad27b09047e03929517111344219f.tar.zst
gsoc2013-evolution-14c68f8e45dad27b09047e03929517111344219f.zip
Bug #596860 - Duplicate event gets shown in calendar view
Interim/partial solution.
Diffstat (limited to 'calendar/gui/e-cal-model.c')
-rw-r--r--calendar/gui/e-cal-model.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index cf515d55b6..33c209e1c5 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -2130,6 +2130,11 @@ add_new_client (ECalModel *model, ECal *client, gboolean do_query)
/* Look to see if we already have this client */
client_data = find_client_data (model, client);
if (client_data) {
+ if (do_query && client_data->client == priv->default_client) {
+ g_warning ("%s: %s: You shouldn't request a query on a default client", G_STRLOC, G_STRFUNC);
+ return client_data;
+ }
+
if (client_data->do_query)
return client_data;
else