From f79e6735864a16c20d0ed0cc9d79c8c20aeb4816 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 23 Feb 2021 06:10:40 +0200 Subject: Editing bookmark icons IssueID #140 --- src/ui/sidebarwidget.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ui/sidebarwidget.c') diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 36aa1235..54812aec 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c @@ -689,8 +689,10 @@ iBool handleBookmarkEditorCommands_SidebarWidget_(iWidget *editor, const char *c removeTag_Bookmark(bm, "usericon"); bm->icon = 0; } - else if (!hasTag_Bookmark(bm, "usericon")) { - addTag_Bookmark(bm, "usericon"); + else { + if (!hasTag_Bookmark(bm, "usericon")) { + addTag_Bookmark(bm, "usericon"); + } bm->icon = first_String(icon); } postCommand_App("bookmarks.changed"); -- cgit v1.2.3