}
Xstrdup_a(old_path, item->path, {g_free(new_folder); return;});
- old_id = folder_item_get_identifier(item);
if (item->folder->klass->rename_folder(item->folder, item, new_folder) < 0) {
- g_free(old_id);
+ alertpanel_error(_("The folder could not be renamed.\n"
+ "The new folder name could not be allowed."));
return;
}
+ old_id = folder_item_get_identifier(item);
/* if (FOLDER_TYPE(item->folder) == F_MH)
prefs_filtering_rename_path(old_path, item->path); */
new_id = folder_item_get_identifier(item);
}
gtk_clist_thaw(GTK_CLIST(ctree));
-
+
+ folder_item_prefs_save_config(item);
folder_write_list();
}