diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-10 22:06:05 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-10 22:06:07 +0800 |
commit | b8ad0668749e8f1da95ce8060aac26905d8a8782 (patch) | |
tree | f4f25c69a342ded98f2c36caa6b9b5c7d3aacb9b | |
parent | 79823a12c3ddd74cea17164db13e16a21dd81ab3 (diff) | |
download | gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar.gz gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar.bz2 gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar.lz gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar.xz gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar.zst gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.zip |
empathy_accounts_dialog_show: check if priv->cms is not NULL before using it
priv->cms is initalized in accounts_dialog_accounts_setup once the
account manager is ready. So it's not garanteed to be set in
empathy_accounts_dialog_show anymore.
-rw-r--r-- | src/empathy-accounts-dialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 75ed75db9..d2161a27f 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -1834,7 +1834,7 @@ empathy_accounts_dialog_show (GtkWindow *parent, if (selected_account) { - if (empathy_connection_managers_is_ready (priv->cms)) + if (priv->cms != NULL && empathy_connection_managers_is_ready (priv->cms)) accounts_dialog_set_selected_account (dialog, selected_account); else /* save the selection to set it later when the cms |