# HG changeset patch # User masneyb # Date 1166904606 0 # Node ID b1cfb42c5be4cb80197f95d118adbcee9dc2086b # Parent 877282be3a78a6f9a88f345b7e1867bafe0a891c 2006-11-30 Brian Masney * src/gtk/bookmarks.c (do_make_new) - don't allow creating bookmarks that have an empty description. (closes #367933) diff -r 877282be3a78 -r b1cfb42c5be4 ChangeLog --- a/ChangeLog Sat Dec 23 19:54:08 2006 +0000 +++ b/ChangeLog Sat Dec 23 20:10:06 2006 +0000 @@ -1,4 +1,7 @@ 2006-11-30 Brian Masney + * src/gtk/bookmarks.c (do_make_new) - don't allow creating + bookmarks that have an empty description. (closes #367933) + * src/gtk/bookmarks.c - changed the button order to match the button order in GNOME. (from Alan Horkan ) @@ -3779,7 +3782,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.510 2006/12/23 19:54:08 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.511 2006/12/23 20:10:06 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r 877282be3a78 -r b1cfb42c5be4 src/gtk/bookmarks.c --- a/src/gtk/bookmarks.c Sat Dec 23 19:54:08 2006 +0000 +++ b/src/gtk/bookmarks.c Sat Dec 23 20:10:06 2006 +0000 @@ -414,6 +414,12 @@ gftp_get_pixmap (tree, "dir.xpm", &closedir_pixmap, &closedir_bitmap); str = gtk_entry_get_text (GTK_ENTRY (ddata->edit)); + if (*str == '\0') + { + ftp_log (gftp_logging_misc, NULL, + _("You must specify a name for the bookmark.")); + return; + } newentry = g_malloc0 (sizeof (*newentry)); #if GTK_MAJOR_VERSION == 1