changeset 11037:57e36a4ff107

[gaim-migrate @ 12933] Patch #1227823 from Richard Laager "This patch displays the Add Account dialog when you open the account editor and no accounts exist." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 30 Jun 2005 04:02:39 +0000
parents b6070e971ceb
children aedd557f46dd
files src/gtkaccount.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkaccount.c	Thu Jun 30 03:49:45 2005 +0000
+++ b/src/gtkaccount.c	Thu Jun 30 04:02:39 2005 +0000
@@ -2387,6 +2387,10 @@
 						dialog, GAIM_CALLBACK(signed_on_off_cb), dialog);
 
 	gtk_widget_show(win);
+
+	/* Display the add account window if no accounts exist. */
+	if (gaim_accounts_get_all() == NULL)
+		gaim_gtk_account_dialog_show(GAIM_GTK_ADD_ACCOUNT_DIALOG, NULL);
 }
 
 void