aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-account-gui.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 0785f68098..653943135f 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-23 Peter Williams <peterw@ximian.com>
+
+ * mail-account-gui.c (mail_account_gui_save): Eek, let the user create
+ new accounts if old_account == NULL.
+
2001-08-23 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (destination_folder_handle_drop): Check to
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;