aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-08-24 05:42:45 +0800
committerPeter Williams <peterw@src.gnome.org>2001-08-24 05:42:45 +0800
commit56b58a3b644ce3d181d841ac3345302c6eaa6846 (patch)
tree1f1120df0c37c4af5c7f888a703f9f800982a1f1 /mail/mail-account-gui.c
parent90823e758b76bbaed17a45975a3b577c13ad97bc (diff)
downloadgsoc2013-evolution-56b58a3b644ce3d181d841ac3345302c6eaa6846.tar.gz
gsoc2013-evolution-56b58a3b644ce3d181d841ac3345302c6eaa6846.tar.zst
gsoc2013-evolution-56b58a3b644ce3d181d841ac3345302c6eaa6846.zip
Eek, let the user create new accounts if old_account == NULL.
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. svn path=/trunk/; revision=12425
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r--mail/mail-account-gui.c2
1 files changed, 1 insertions, 1 deletions
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;