summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-bookmark.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-12-24 11:35:09 +0100
committerraveit65 <[email protected]>2018-12-27 14:26:03 +0100
commite7b68e08a5dacacc0a35049422a40a03f95aba4a (patch)
treebc2f7229c0a99efd4fbdd9b2300ddcfb932d3140 /libcaja-private/caja-bookmark.c
parent1846d75ba9b18d4017973d79b15045693ff8baac (diff)
downloadcaja-e7b68e08a5dacacc0a35049422a40a03f95aba4a.tar.bz2
caja-e7b68e08a5dacacc0a35049422a40a03f95aba4a.tar.xz
Fix: weird item in bookmarks if the folder was removed
Fixes https://github.com/mate-desktop/caja/issues/1099
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