Mercurial > gftp.yaz
changeset 867:b1cfb42c5be4
2006-11-30 Brian Masney <masneyb@gftp.org>
* src/gtk/bookmarks.c (do_make_new) - don't allow creating
bookmarks that have an empty description. (closes #367933)
author | masneyb |
---|---|
date | Sat, 23 Dec 2006 20:10:06 +0000 |
parents | 877282be3a78 |
children | 38a22d607eab |
files | ChangeLog src/gtk/bookmarks.c |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <masneyb@gftp.org> + * 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 <horkana@maths.tcd.ie>) @@ -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
--- 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