diff src/gtkprivacy.c @ 10147:a485dedd6ba2

[gaim-migrate @ 11224] Minor privacy dialog changes from Bleeter. 1. Force-save blist.xml when privacy stuff changes instead of when Gaim shutdowns (or when something else triggers a blist-save) 2. Don't redraw stuff in the dialog if you select the same privacy option that was previously selected. Someone can commit this to oldstatus, if you really want. I'm not going to because I don't want to test it and I don't want to be responsible if it breaks something there, and I don't consider the changes to be that dire. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 27 Oct 2004 22:24:51 +0000
parents 4a15962c344a
children 946aa96fa103
line wrap: on
line diff
--- a/src/gtkprivacy.c	Wed Oct 27 00:05:28 2004 +0000
+++ b/src/gtkprivacy.c	Wed Oct 27 22:24:51 2004 +0000
@@ -243,6 +243,9 @@
 {
 	int new_type = menu_entries[gtk_option_menu_get_history(optmenu)].num;
 
+	if (dialog->account->perm_deny == new_type)
+		return;
+
 	dialog->account->perm_deny = new_type;
 	serv_set_permit_deny(gaim_account_get_connection(dialog->account));
 
@@ -260,6 +263,8 @@
 		gtk_widget_show(dialog->button_box);
 		dialog->in_allow_list = FALSE;
 	}
+
+	gaim_blist_sync();
 }
 
 static void