comparison src/gtkaccount.c @ 13982:052aee037835

[gaim-migrate @ 16550] Only set an account's status to the default status when enabling it, not when disabling it. Fixes a very minor weirdness. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 23 Jul 2006 18:58:59 +0000
parents 3ac2d64a74a0
children e1fd2a8bd40b
comparison
equal deleted inserted replaced
13981:91a4cc3ee221 13982:052aee037835
2219 gtk_tree_model_get(model, &iter, 2219 gtk_tree_model_get(model, &iter,
2220 COLUMN_DATA, &account, 2220 COLUMN_DATA, &account,
2221 COLUMN_ENABLED, &enabled, 2221 COLUMN_ENABLED, &enabled,
2222 -1); 2222 -1);
2223 2223
2224 /* Set the statuses for this account to the current status */ 2224 /*
2225 saved_status = gaim_savedstatus_get_current(); 2225 * If we just enabled the account, then set the statuses
2226 gaim_savedstatus_activate_for_account(saved_status, account); 2226 * to the current status.
2227 */
2228 if (!enabled)
2229 {
2230 saved_status = gaim_savedstatus_get_current();
2231 gaim_savedstatus_activate_for_account(saved_status, account);
2232 }
2227 2233
2228 gaim_account_set_enabled(account, GAIM_GTK_UI, !enabled); 2234 gaim_account_set_enabled(account, GAIM_GTK_UI, !enabled);
2229 } 2235 }
2230 2236
2231 static void 2237 static void