# HG changeset patch # User Eric Polino # Date 1184350076 0 # Node ID 7781dcecbd47a10f4accc3252674e1f299abe05c # Parent d2a88d84fbac309ee40f372dd39d36b2af899a00 Reset to the default profile when the active profile is deleted. diff -r d2a88d84fbac -r 7781dcecbd47 finch/gntsound.c --- 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); }