Mercurial > pidgin.yaz
diff src/gtkaccount.c @ 10932:3ad0e7351826
[gaim-migrate @ 12711]
This is a bit better, but needs work. Don't sign on accounts just because
you modified them. This should be adapted to use the currently active
status sometime.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 19 May 2005 01:03:45 +0000 |
parents | ceb88f2a2f17 |
children | 77d26d0b7a0a |
line wrap: on
line diff
--- a/src/gtkaccount.c Thu May 19 00:50:06 2005 +0000 +++ b/src/gtkaccount.c Thu May 19 01:03:45 2005 +0000 @@ -1348,6 +1348,7 @@ char *username; char *tmp; size_t index; + gboolean new = FALSE; GtkTreeIter iter; GaimAccount *ret; @@ -1359,6 +1360,7 @@ dialog->account = gaim_account_new(screenname, dialog->protocol_id); gaim_account_set_enabled(dialog->account, GAIM_GTK_UI, TRUE); + new = TRUE; } else { @@ -1538,13 +1540,17 @@ } } - gaim_presence_set_status_active(dialog->account->presence, "online", TRUE); ret = dialog->account; account_win_destroy_cb(NULL, NULL, dialog); gaim_signal_emit(gaim_gtk_account_get_handle(), "account-modified", ret); + /* XXX: make the new account sign on with the currently active global status + * instead of hardcoding "online" */ + if (new) + gaim_presence_set_status_active(dialog->account->presence, "online", TRUE); + return ret; }