empathy r2256 - trunk/src



Author: xclaesse
Date: Mon Jan 26 10:42:28 2009
New Revision: 2256
URL: http://svn.gnome.org/viewvc/empathy?rev=2256&view=rev

Log:
accounts_dialog_button_create_clicked_cb: if, for some reason, mc_account_create failed, early return instead of crashing

From: Guillaume Desmottes <gdesmott gnome org>

Modified:
   trunk/src/empathy-accounts-dialog.c

Modified: trunk/src/empathy-accounts-dialog.c
==============================================================================
--- trunk/src/empathy-accounts-dialog.c	(original)
+++ trunk/src/empathy-accounts-dialog.c	Mon Jan 26 10:42:28 2009
@@ -823,6 +823,12 @@
 
 	/* Create account */
 	account = mc_account_create (profile);
+	if (account == NULL) {
+		/* We can't display an error to the user as MC doesn't give us
+		 * any clue about the reason of the failure... */
+		return;
+	}
+
 	/* To translator: %s is the protocol name */
 	str = g_strdup_printf (_("New %s account"),
 			       mc_profile_get_display_name (profile));



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