aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2005-02-10 16:44:14 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-02-10 16:44:14 +0800
commit46b8bfe92103a9941b0c39f7bcb493bf44074327 (patch)
tree98e09241b32774f1f77c2f1fb68b94012918622e
parent58f807b97e9ccc80e9b02217d9d77a3996da662c (diff)
downloadgsoc2013-evolution-46b8bfe92103a9941b0c39f7bcb493bf44074327.tar.gz
gsoc2013-evolution-46b8bfe92103a9941b0c39f7bcb493bf44074327.tar.zst
gsoc2013-evolution-46b8bfe92103a9941b0c39f7bcb493bf44074327.zip
IF we get a invalid session string back from the server do the operation
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. svn path=/trunk/; revision=28765
-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);
}