From: <the...@us...> - 2006-07-23 18:59:02
|
Revision: 16550 Author: thekingant Date: 2006-07-23 11:58:59 -0700 (Sun, 23 Jul 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16550&view=rev Log Message: ----------- Only set an account's status to the default status when enabling it, not when disabling it. Fixes a very minor weirdness. Modified Paths: -------------- trunk/src/gtkaccount.c Modified: trunk/src/gtkaccount.c =================================================================== --- trunk/src/gtkaccount.c 2006-07-23 18:57:28 UTC (rev 16549) +++ trunk/src/gtkaccount.c 2006-07-23 18:58:59 UTC (rev 16550) @@ -2221,9 +2221,15 @@ COLUMN_ENABLED, &enabled, -1); - /* Set the statuses for this account to the current status */ - saved_status = gaim_savedstatus_get_current(); - gaim_savedstatus_activate_for_account(saved_status, account); + /* + * If we just enabled the account, then set the statuses + * to the current status. + */ + if (!enabled) + { + saved_status = gaim_savedstatus_get_current(); + gaim_savedstatus_activate_for_account(saved_status, account); + } gaim_account_set_enabled(account, GAIM_GTK_UI, !enabled); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |