aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/send-options/ChangeLog6
-rw-r--r--plugins/send-options/send-options.c9
2 files changed, 14 insertions, 1 deletions
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 <pchenthill@novell.com>
+
+ * 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 <pchenthill@novell.com>
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);
}