diff options
author | Pablo Barciela <[email protected]> | 2018-12-24 11:35:09 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-12-27 14:26:03 +0100 |
commit | e7b68e08a5dacacc0a35049422a40a03f95aba4a (patch) | |
tree | bc2f7229c0a99efd4fbdd9b2300ddcfb932d3140 /libcaja-private | |
parent | 1846d75ba9b18d4017973d79b15045693ff8baac (diff) | |
download | caja-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')
-rw-r--r-- | libcaja-private/caja-bookmark.c | 9 |
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 |