diff options
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 4375b9bcc0..d8741e0c71 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -2672,13 +2672,13 @@ emft_popup_rename_folder (EPopup *ep, EPopupItem *pitem, void *data) prompt = g_strdup_printf (_("Rename the \"%s\" folder to:"), name); while (!done) { new_name = e_request_string (NULL, _("Rename Folder"), prompt, name); - if (strchr(new_name, '/') != NULL) { + if (new_name == NULL || !strcmp (name, new_name)) { + /* old name == new name */ + done = TRUE; + } else if (strchr(new_name, '/') != NULL) { e_error_run((GtkWindow *)gtk_widget_get_toplevel((GtkWidget *)emft), "mail:no-rename-folder", name, new_name, _("Folder names cannot contain '/'"), NULL); done = TRUE; - } else if (new_name == NULL || !strcmp (name, new_name)) { - /* old name == new name */ - done = TRUE; } else { CamelFolderInfo *fi; CamelException ex; |