From 46b8bfe92103a9941b0c39f7bcb493bf44074327 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 10 Feb 2005 08:44:14 +0000 Subject: IF we get a invalid session string back from the server do the operation 2005-02-10 Chenthill Palanisamy * send-options.c: (e_sendoptions_clicked_cb): IF we get a invalid session string back from the server do the operation again. svn path=/trunk/; revision=28765 --- plugins/send-options/ChangeLog | 6 ++++++ plugins/send-options/send-options.c | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/plugins/send-options/ChangeLog b/plugins/send-options/ChangeLog index 1981fa78ec..16c3882863 100644 --- a/plugins/send-options/ChangeLog +++ b/plugins/send-options/ChangeLog @@ -1,3 +1,9 @@ +2005-02-10 Chenthill Palanisamy + + * send-options.c: (e_sendoptions_clicked_cb): IF + we get a invalid session string back from the server + do the operation again. + 2005-01-24 Chenthill Palanisamy diff --git a/plugins/send-options/send-options.c b/plugins/send-options/send-options.c index 8fc18e1c40..823865e617 100644 --- a/plugins/send-options/send-options.c +++ b/plugins/send-options/send-options.c @@ -161,6 +161,7 @@ e_send_options_load_default_data (EGwSendOptions *opts, ESendOptionsDialog *sod) static void e_sendoptions_clicked_cb (GtkWidget *button, gpointer data) { + EGwConnectionStatus status; account = (EAccount *) data; if (!sod) { sod = e_sendoptions_dialog_new (); @@ -173,7 +174,13 @@ e_sendoptions_clicked_cb (GtkWidget *button, gpointer data) return; } - e_gw_connection_get_settings (n_cnc, &opts); + status = e_gw_connection_get_settings (n_cnc, &opts); + if (status == E_GW_CONNECTION_STATUS_INVALID_CONNECTION) + status = e_gw_connection_get_settings (n_cnc, &opts); + if (status != E_GW_CONNECTION_STATUS_OK) { + g_warning ("Send Options: Could not get the settings from the server"); + return; + } e_send_options_load_default_data (opts, sod); } -- cgit v1.2.3