diff options
author | Guillaume Desmottes <gdesmott@gnome.org> | 2009-01-26 18:42:28 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-26 18:42:28 +0800 |
commit | b94196fd44f7c6f1c784ab9cb279b3a7558bf8a3 (patch) | |
tree | 2a44185980f1b388e2ca9f6bc869272a6d9607d9 /src | |
parent | 285fdbdfa680a570b48bdef14caa16e287b63731 (diff) | |
download | gsoc2013-empathy-b94196fd44f7c6f1c784ab9cb279b3a7558bf8a3.tar gsoc2013-empathy-b94196fd44f7c6f1c784ab9cb279b3a7558bf8a3.tar.gz gsoc2013-empathy-b94196fd44f7c6f1c784ab9cb279b3a7558bf8a3.tar.bz2 gsoc2013-empathy-b94196fd44f7c6f1c784ab9cb279b3a7558bf8a3.tar.lz gsoc2013-empathy-b94196fd44f7c6f1c784ab9cb279b3a7558bf8a3.tar.xz gsoc2013-empathy-b94196fd44f7c6f1c784ab9cb279b3a7558bf8a3.tar.zst gsoc2013-empathy-b94196fd44f7c6f1c784ab9cb279b3a7558bf8a3.zip |
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>
svn path=/trunk/; revision=2256
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-accounts-dialog.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index cc68c1bc3..892f24235 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -823,6 +823,12 @@ accounts_dialog_button_create_clicked_cb (GtkWidget *button, /* 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)); |