changeset 6092:35560e017fa1

[gaim-migrate @ 6551] This fixes the buddy icon deletion issue, mad props go to Herman for finding the cause of this. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 11 Jul 2003 22:00:01 +0000
parents 9b09fec41257
children 13a37cacd10b
files src/gtkaccount.c
diffstat 1 files changed, 1 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkaccount.c	Fri Jul 11 17:23:58 2003 +0000
+++ b/src/gtkaccount.c	Fri Jul 11 22:00:01 2003 +0000
@@ -224,33 +224,9 @@
 	if (gaim_gtk_check_if_dir(filename, GTK_FILE_SELECTION(dialog->buddy_icon_filesel)))
 		return;
 
-	if (dialog->account) {
-		const char *username;
-		struct buddy *b;
-
+	if (dialog->account)
 		gaim_account_set_buddy_icon(dialog->account, filename);
 
-		username = gaim_account_get_username(dialog->account);
-
-		b = gaim_find_buddy(dialog->account, username);
-
-		if (b != NULL) {
-			GaimConversation *conv;
-
-			gaim_buddy_set_setting(b, "buddy_icon", filename);
-			gaim_blist_save();
-			gaim_blist_update_buddy_icon(b);
-
-			conv = gaim_find_conversation(username);
-
-			if (conv != NULL &&
-				gaim_conversation_get_account(conv) == dialog->account) {
-
-				gaim_gtkconv_update_buddy_icon(conv);
-			}
-		}
-	}
-
 	gtk_entry_set_text(GTK_ENTRY(dialog->buddy_icon_entry), filename);
 	gtk_widget_destroy(dialog->buddy_icon_filesel);
 }