From 90639958404d0e181485a780d1d4dfe9363c53cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Sat, 26 Nov 2022 15:30:15 +0200
Subject: [PATCH 1/1] Don't allow invalid bookmark folder parents
src/ui/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ui/util.c b/src/ui/util.c
index f9a386b2..e91b863d 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -3328,7 +3328,7 @@ static const iArray *makeBookmarkFolderItems_(iBool withNullTerminator, uint32_t
i,
list_Bookmarks(bookmarks_App(), cmpTree_Bookmark, isBookmarkFolder_, NULL)) {
const iBookmark *bm = i.ptr;
if (id_Bookmark(bm) == omitFolderId) {
if (id_Bookmark(bm) == omitFolderId || hasParent_Bookmark(bm, omitFolderId)) {
continue;
}
iString *title = collect_String(copy_String(&bm->title));
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).