aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-tasks.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-02-18 04:29:58 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-02-18 04:29:58 +0800
commit4653e2bdddb1afcbc2ce15270dfb42411a5334df (patch)
treeb597ca40e4aa465366596f9ee4f12bc4fa7fff8d /calendar/gui/e-tasks.c
parentf588b4ffedc140a2ded75617fce656eac39466a4 (diff)
downloadgsoc2013-evolution-4653e2bdddb1afcbc2ce15270dfb42411a5334df.tar
gsoc2013-evolution-4653e2bdddb1afcbc2ce15270dfb42411a5334df.tar.gz
gsoc2013-evolution-4653e2bdddb1afcbc2ce15270dfb42411a5334df.tar.bz2
gsoc2013-evolution-4653e2bdddb1afcbc2ce15270dfb42411a5334df.tar.lz
gsoc2013-evolution-4653e2bdddb1afcbc2ce15270dfb42411a5334df.tar.xz
gsoc2013-evolution-4653e2bdddb1afcbc2ce15270dfb42411a5334df.tar.zst
gsoc2013-evolution-4653e2bdddb1afcbc2ce15270dfb42411a5334df.zip
** Fix for bnc #160049. Patch from OpenSUSE.
2008-02-18 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bnc #160049. Patch from OpenSUSE. * common/authentication.c: (build_pass_key), (auth_cal_forget_password): * common/authentication.h: * gui/e-tasks.c: (client_cal_opened_cb), (default_client_cal_opened_cb): * gui/gnome-cal.c: (client_cal_opened_cb): svn path=/trunk/; revision=35035
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r--calendar/gui/e-tasks.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c
index 84a03344df..33e4cdcb78 100644
--- a/calendar/gui/e-tasks.c
+++ b/calendar/gui/e-tasks.c
@@ -964,6 +964,9 @@ client_cal_opened_cb (ECal *ecal, ECalendarStatus status, ETasks *tasks)
priv = tasks->priv;
source = e_cal_get_source (ecal);
+
+ if (status == E_CALENDAR_STATUS_AUTHENTICATION_FAILED)
+ auth_cal_forget_password (ecal);
switch (status) {
case E_CALENDAR_STATUS_OK :
@@ -1010,6 +1013,9 @@ default_client_cal_opened_cb (ECal *ecal, ECalendarStatus status, ETasks *tasks)
source = e_cal_get_source (ecal);
+ if (status == E_CALENDAR_STATUS_AUTHENTICATION_FAILED)
+ auth_cal_forget_password (ecal);
+
switch (status) {
case E_CALENDAR_STATUS_OK :
g_signal_handlers_disconnect_matched (ecal, G_SIGNAL_MATCH_FUNC, 0, 0, NULL, default_client_cal_opened_cb, NULL);