[empathy/mc5: 151/483] Don't try to update the widgets if no account was selected
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/mc5: 151/483] Don't try to update the widgets if no account was selected
- Date: Fri, 21 Aug 2009 17:14:02 +0000 (UTC)
commit df1cf218c8a219caa68fc2f95aed1df84a95382e
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Wed Jul 22 00:07:03 2009 +0100
Don't try to update the widgets if no account was selected
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 b36d0d4..219be37 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), "");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]