diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-22 07:07:03 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-22 07:07:03 +0800 |
commit | df1cf218c8a219caa68fc2f95aed1df84a95382e (patch) | |
tree | eb31b805ef4472b4899da1472a50daa4c7d51e0c | |
parent | 0b269dddf9534936735567c8f23519f0f88c949d (diff) | |
download | gsoc2013-empathy-df1cf218c8a219caa68fc2f95aed1df84a95382e.tar gsoc2013-empathy-df1cf218c8a219caa68fc2f95aed1df84a95382e.tar.gz gsoc2013-empathy-df1cf218c8a219caa68fc2f95aed1df84a95382e.tar.bz2 gsoc2013-empathy-df1cf218c8a219caa68fc2f95aed1df84a95382e.tar.lz gsoc2013-empathy-df1cf218c8a219caa68fc2f95aed1df84a95382e.tar.xz gsoc2013-empathy-df1cf218c8a219caa68fc2f95aed1df84a95382e.tar.zst gsoc2013-empathy-df1cf218c8a219caa68fc2f95aed1df84a95382e.zip |
Don't try to update the widgets if no account was selected
-rw-r--r-- | src/empathy-new-chatroom-dialog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c index b36d0d4f5..219be371d 100644 --- a/src/empathy-new-chatroom-dialog.c +++ b/src/empathy-new-chatroom-dialog.c @@ -360,6 +360,10 @@ new_chatroom_dialog_update_widgets (EmpathyNewChatroomDialog *dialog) account_chooser = EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser); account = empathy_account_chooser_dup_account (account_chooser); + + if (account == NULL) + return; + protocol = empathy_account_get_protocol (account); gtk_entry_set_text (GTK_ENTRY (dialog->entry_server), ""); |