aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-folder-tree.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 47323f0138..9acda651d8 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2005-01-26 Mengjie Yu <meng-jie.yu@sun.com>
+
+ Fixes #71774
+ * em-folder-tree.c: (emft_popup_rename_folder):
+ we should check whether the 'new_name' is a NULL pointer to avoid
+ Evolution crashes.
+
2005-01-25 Mengjie Yu <meng-jie.yu@sun.com>
* em-mailer-prefs.c: (restore_labels_clicked),
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;
d> * Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.mat2016-04-011-13/+13 * Make print/ghostscript9-agpl-base the default Ghostscript port. Upstreamtijl2016-03-241-1/+1 * Combine print/cups-base, print/cups-client and print/cups-image intotijl2016-03-111-1/+2 * print/scribus: Update to version 1.4.6.bsam2016-01-304-9/+16 * - Switch to outsource build to not install unwanted filesamdmi32016-01-242-123/+6 * Switch to USES=execinfopawel2016-01-031-3/+2 * - Split ghostscript into X11-independent and -dependent parts:hrs2015-08-231-0/+1 * print/scribus: The release was packed by bzip2 but named after xz.bsam2015-07-312-3/+3 * Convert code in bsd.port.mk for USE_GHOSTSCRIPT* to USES=ghostscript.kwm2015-07-171-2/+2 * Convert to USES=jpegantoine2015-06-231-3/+2 * print/scribus: welcome 1.4.5 releasebsam2015-02-014-17/+45 * Bump portrevision after png updatebapt2014-12-261-1/+1 * Change libpng15.so to libpng.so in LIB_DEPENDS to prepare the upgradeantoine2014-12-261-1/+1 * Cleanup plistantoine2014-11-131-248/+57 * print/scribus: switch from py-imaging to py-pillowwg2014-10-071-4/+3 * Add DOCS option for ports with PORTDOCS in plist.adamw2014-07-161-0/+2 * Chase hyphen shlib changebapt2014-06-301-0/+1 * print/scribus: Update to version 1.4.4.bsam2014-06-123-1860/+1884 * Utilize USES+=tar:xz.bsam2014-05-161-2/+1 * . stageify;bsam2014-05-133-10/+25 * The FreeBSD x11@ and graphics team proudly presentszeising2014-04-171-1/+1 * Chase boost and icu bumpbapt2014-02-071-0/+1 * Fix LIB_DEPENDSantoine2013-12-271-1/+1 * Convert LIB_DEPENDS for ports depending on boostbapt2013-12-121-13/+13 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-21