Mercurial > pidgin.yaz
changeset 9031:f2084fa7bda1
[gaim-migrate @ 9807]
Let's not always show "attempting to rename pref" when starting Gaim.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 23 May 2004 17:37:11 +0000 |
parents | 7ab20f829190 |
children | 7e8b94266500 |
files | src/prefs.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/prefs.c Sun May 23 17:27:45 2004 +0000 +++ b/src/prefs.c Sun May 23 17:37:11 2004 +0000 @@ -591,8 +591,6 @@ void gaim_prefs_rename(const char *oldname, const char *newname) { struct gaim_pref *oldpref, *newpref; - gaim_debug_info("prefs", "Attempting to rename %s to %s\n", oldname, newname); - oldpref = find_pref(oldname); newpref = find_pref(newname); @@ -600,7 +598,9 @@ if(!oldpref) return; - g_return_if_fail(newpref != NULL); /* the new one needs to be created */ + gaim_debug_info("prefs", "Renaming %s to %s\n", oldname, newname); + + g_return_if_fail(newpref != NULL); /* the new one needs to be created first */ g_return_if_fail(oldpref->type == newpref->type); g_return_if_fail(oldpref->first_child == NULL); /* can't rename parents */