From 56b58a3b644ce3d181d841ac3345302c6eaa6846 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Thu, 23 Aug 2001 21:42:45 +0000 Subject: Eek, let the user create new accounts if old_account == NULL. 2001-08-23 Peter Williams * mail-account-gui.c (mail_account_gui_save): Eek, let the user create new accounts if old_account == NULL. svn path=/trunk/; revision=12425 --- mail/mail-account-gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/mail-account-gui.c') diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index 26c6fbf5b4..0a986c4f66 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -1580,7 +1580,7 @@ mail_account_gui_save (MailAccountGui *gui) new_name = e_utf8_gtk_entry_get_text (gui->account_name); old_account = mail_config_get_account_by_name (new_name); - if (old_account != account) { + if (old_account && old_account != account) { e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, _("You may not create two accounts with the same name.")); return FALSE; -- cgit v1.2.3