comparison libpurple/prefs.c @ 25235:fdcb21cd6565

disapproval of revision '59dabca54f8fec54f44c38eaaaafb29086c7ade7' Disable the prefs unint changes for now because they are problematic. Refs #7761.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 09 Jan 2009 03:55:52 +0000
parents 8b55fcc6adde
children 8972d3cd4b42 d5ab2f9485f2
comparison
equal deleted inserted replaced
24894:8b55fcc6adde 25235:fdcb21cd6565
691 remove_pref(struct purple_pref *pref) 691 remove_pref(struct purple_pref *pref)
692 { 692 {
693 char *name; 693 char *name;
694 GSList *l; 694 GSList *l;
695 695
696 if(!pref) 696 if(!pref || pref == &prefs)
697 return; 697 return;
698 698
699 while(pref->first_child) 699 while(pref->first_child)
700 remove_pref(pref->first_child); 700 remove_pref(pref->first_child);
701
702 if(pref == &prefs)
703 return;
704 701
705 if(pref->parent->first_child == pref) { 702 if(pref->parent->first_child == pref) {
706 pref->parent->first_child = pref->sibling; 703 pref->parent->first_child = pref->sibling;
707 } else { 704 } else {
708 struct purple_pref *sib = pref->parent->first_child; 705 struct purple_pref *sib = pref->parent->first_child;
1453 save_timer = 0; 1450 save_timer = 0;
1454 sync_prefs(); 1451 sync_prefs();
1455 } 1452 }
1456 1453
1457 purple_prefs_disconnect_by_handle(purple_prefs_get_handle()); 1454 purple_prefs_disconnect_by_handle(purple_prefs_get_handle());
1458 purple_prefs_destroy(); 1455 }
1459 g_hash_table_destroy(prefs_hash);
1460 prefs_hash = NULL;
1461
1462 }