changeset 6495:8ce66049ce68

[gaim-migrate @ 7010] Conversation windows were crashing if no accounts were signed on. Fixed. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 18 Aug 2003 21:01:03 +0000
parents 4f93f10ddc75
children e0c80bec996a
files src/gtkconv.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Mon Aug 18 17:50:24 2003 +0000
+++ b/src/gtkconv.c	Mon Aug 18 21:01:03 2003 +0000
@@ -2284,7 +2284,7 @@
 			conv = (GaimConversation *)convs->data;
 			account = gaim_conversation_get_account(conv);
 
-			if (account->gc == NULL) {
+			if (account != NULL && account->gc == NULL) {
 				found_offline = TRUE;
 				break;
 			}
@@ -2395,8 +2395,7 @@
 
 		account = gaim_conversation_get_account(conv);
 
-
-		if (account && (account->gc == NULL)) {
+		if (account != NULL && account->gc == NULL) {
 			if (first_offline && found_online) {
 				menuitem = gtk_separator_menu_item_new();
 				gtk_widget_show(menuitem);