Mercurial > pidgin
diff console/gntaccount.c @ 14326:f74c19f2da30
[gaim-migrate @ 17021]
Show the accounts dialog only once.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 24 Aug 2006 19:55:43 +0000 |
parents | 2d1b41e3cf0d |
children | 84a480acb6ad |
line wrap: on
line diff
--- a/console/gntaccount.c Thu Aug 24 19:41:34 2006 +0000 +++ b/console/gntaccount.c Thu Aug 24 19:55:43 2006 +0000 @@ -225,7 +225,7 @@ return; prplinfo = GAIM_PLUGIN_PROTOCOL_INFO(plugin); - username = g_strdup(gaim_account_get_username(dialog->account)); + username = dialog->account ? g_strdup(gaim_account_get_username(dialog->account)) : NULL; for (iter = prplinfo->user_splits; iter; iter = iter->next) { @@ -612,6 +612,9 @@ GList *iter; GntWidget *box, *button; + if (accounts.window) + return; + accounts.window = gnt_vbox_new(FALSE); gnt_box_set_toplevel(GNT_BOX(accounts.window), TRUE); gnt_box_set_title(GNT_BOX(accounts.window), _("Accounts"));