changeset 13053:d50c330e8089

[gaim-migrate @ 15414] As discussed in #gaim, this will fix a broken idle score pref on upgrade. It's a bit messy, but we can remove this shortly after 2.0.0 final, so it should be alright. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 27 Jan 2006 23:58:35 +0000
parents b4eba6c7f6f8
children fd57413bc421
files src/prefs.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/prefs.c	Fri Jan 27 15:30:28 2006 +0000
+++ b/src/prefs.c	Fri Jan 27 23:58:35 2006 +0000
@@ -391,6 +391,19 @@
 	g_free(filename);
 	prefs_loaded = TRUE;
 
+	/* I introduced a bug in 2.0.0beta2.  This fixes the broken
+	 * scores on upgrade.  This can be removed sometime shortly
+	 * after 2.0.0 final is released. -- rlaager */
+	if (gaim_prefs_get_int("/core/status/scores/offline") == -500 &&
+	    gaim_prefs_get_int("/core/status/scores/available") == 100 &&
+	    gaim_prefs_get_int("/core/status/scores/invisible") == -50 &&
+	    gaim_prefs_get_int("/core/status/scores/away") == -100 &&
+	    gaim_prefs_get_int("/core/status/scores/extended_away") == -200 &&
+	    gaim_prefs_get_int("/core/status/scores/idle") == -400)
+	{
+		gaim_prefs_set_int("/core/status/scores/idle", -10);
+	}
+
 	return TRUE;
 }