diff src/gtkmain.c @ 12857:e5f780a6137b

[gaim-migrate @ 15208] This is the ability to set a startup status to be used instead of the status when you last exited. The savedstatus stuff was missing from Changelog.API, so I added it. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 13 Jan 2006 02:47:12 +0000
parents 95d350f56998
children 5efbb0162f86
line wrap: on
line diff
--- a/src/gtkmain.c	Fri Jan 13 01:02:56 2006 +0000
+++ b/src/gtkmain.c	Fri Jan 13 02:47:12 2006 +0000
@@ -727,7 +727,9 @@
 	else
 	{
 		/* Everything is good to go--sign on already */
-		gaim_accounts_restore_previous_statuses();
+		if (!gaim_prefs_get_bool("/core/savedstatus/startup_current_status"))
+			gaim_savedstatus_activate(gaim_savedstatus_get_startup());
+		gaim_accounts_restore_current_statuses();
 	}
 
 	if (gaim_accounts_get_all_active() == NULL)