From 4653e2bdddb1afcbc2ce15270dfb42411a5334df Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Sun, 17 Feb 2008 20:29:58 +0000 Subject: ** Fix for bnc #160049. Patch from OpenSUSE. 2008-02-18 Srinivasa Ragavan ** 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 --- calendar/gui/e-tasks.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'calendar/gui/e-tasks.c') 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); -- cgit v1.2.3