changeset 19166:7781dcecbd47

Reset to the default profile when the active profile is deleted.
author Eric Polino <aluink@pidgin.im>
date Fri, 13 Jul 2007 18:07:56 +0000
parents d2a88d84fbac
children 42fc16a234ec
files finch/gntsound.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntsound.c	Fri Jul 13 12:07:31 2007 +0000
+++ b/finch/gntsound.c	Fri Jul 13 18:07:56 2007 +0000
@@ -814,6 +814,9 @@
 		pref_dialog->original_profile = g_strdup(DEFAULT_PROFILE);
 	}
 
+	if(!strcmp(profile,finch_sound_get_active_profile()))
+		reload_pref_window(DEFAULT_PROFILE);
+
 	gnt_tree_remove(GNT_TREE(pref_dialog->profiles), profile);
 }