changeset 12729:d3232d64fafd

[gaim-migrate @ 15073] This is a better order committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 05 Jan 2006 04:32:25 +0000
parents fb3b7466e3d2
children d5b8f4dc1622
files src/savedstatuses.c
diffstat 1 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/savedstatuses.c	Thu Jan 05 04:01:07 2006 +0000
+++ b/src/savedstatuses.c	Thu Jan 05 04:32:25 2006 +0000
@@ -897,8 +897,13 @@
 
 	g_return_if_fail(saved_status != NULL);
 
+	/* Make sure our list of saved statuses remains sorted */
+	saved_status->lastused = time(NULL);
+	saved_status->usage_count++;
+	saved_statuses = g_list_remove(saved_statuses, saved_status);
+	saved_statuses = g_list_insert_sorted(saved_statuses, saved_status, saved_statuses_sort_func);
+
 	accounts = gaim_accounts_get_all_active();
-
 	for (node = accounts; node != NULL; node = node->next)
 	{
 		GaimAccount *account;
@@ -909,15 +914,8 @@
 
 	g_list_free(accounts);
 
-	saved_status->lastused = time(NULL);
 	gaim_prefs_set_int("/core/savedstatus/current",
 					   gaim_savedstatus_get_creation_time(saved_status));
-
-	/* Make sure our list of saved statuses remains sorted */
-	saved_status->usage_count++;
-	saved_statuses = g_list_remove(saved_statuses, saved_status);
-	saved_statuses = g_list_insert_sorted(saved_statuses, saved_status, saved_statuses_sort_func);
-
 }
 
 void