[evolution-patches] Patch for a crash in send options [groupwise]



Hi,
    Have attached a patch to fix a crash while invoking accountlevel
send options.

thanks, chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/send-options/ChangeLog,v
retrieving revision 1.4
diff -u -p -r1.4 ChangeLog
--- ChangeLog	24 Jan 2005 15:57:23 -0000	1.4
+++ ChangeLog	10 Feb 2005 07:12:58 -0000
@@ -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>
 
 
Index: send-options.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/send-options/send-options.c,v
retrieving revision 1.3
diff -u -p -r1.3 send-options.c
--- send-options.c	24 Jan 2005 15:57:23 -0000	1.3
+++ send-options.c	10 Feb 2005 07:12:59 -0000
@@ -161,6 +161,7 @@ e_send_options_load_default_data (EGwSen
 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 *but
 			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);
 	}
 	


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]