summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-bookmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-bookmark.c')
-rw-r--r--libcaja-private/caja-bookmark.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libcaja-private/caja-bookmark.c b/libcaja-private/caja-bookmark.c
index af7a899e..22fb58a5 100644
--- a/libcaja-private/caja-bookmark.c
+++ b/libcaja-private/caja-bookmark.c
@@ -649,9 +649,14 @@ caja_bookmark_menu_item_new (CajaBookmark *bookmark)
image_cairo = create_image_cairo_for_bookmark (bookmark);
- menu_item = bookmark_image_menu_item_new_from_surface (image_cairo, bookmark->details->name);
+ if (strlen (bookmark->details->name) > 0)
+ {
+ menu_item = bookmark_image_menu_item_new_from_surface (image_cairo, bookmark->details->name);
- return menu_item;
+ return menu_item;
+ }
+ else
+ return NULL;
}
gboolean