[Xfce4-commits] <gigolo:master> Ensure bookmark name is not empty

Enrico Tröger noreply at xfce.org
Mon Jul 26 20:14:03 CEST 2010


Updating branch refs/heads/master
         to 20420e53a50e643ff88c382bd6209d26c73f532f (commit)
       from 6a01eb372a7235fc933d0a3bce0aa9b520920ccb (commit)

commit 20420e53a50e643ff88c382bd6209d26c73f532f
Author: Enrico Tröger <enrico at xfce.org>
Date:   Mon Jul 26 20:11:19 2010 +0200

    Ensure bookmark name is not empty

 src/bookmarkeditdialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/bookmarkeditdialog.c b/src/bookmarkeditdialog.c
index db1cbca..5cbeebb 100644
--- a/src/bookmarkeditdialog.c
+++ b/src/bookmarkeditdialog.c
@@ -764,6 +764,8 @@ static void update_bookmark(GigoloBookmarkEditDialog *dialog)
 	tmp = gtk_entry_get_text(GTK_ENTRY(priv->name_entry));
 	if (*tmp)	/* the name might be empty if the dialog is used as a Connect dialog */
 		gigolo_bookmark_set_name(priv->bookmark_update, tmp);
+	else
+		gigolo_bookmark_set_name(priv->bookmark_update, "none");
 
 	if (idx == -1)
 		idx = 0;



More information about the Xfce4-commits mailing list