diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-23 06:10:40 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-23 06:10:40 +0200 |
commit | f79e6735864a16c20d0ed0cc9d79c8c20aeb4816 (patch) | |
tree | 24b2b2399919ad4507fec805da39b333bd795846 /src/ui/sidebarwidget.c | |
parent | 492d80a084685fc30bb8e9ef7689dcdcbe9ab307 (diff) |
Editing bookmark icons
IssueID #140
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 | |||
689 | removeTag_Bookmark(bm, "usericon"); | 689 | removeTag_Bookmark(bm, "usericon"); |
690 | bm->icon = 0; | 690 | bm->icon = 0; |
691 | } | 691 | } |
692 | else if (!hasTag_Bookmark(bm, "usericon")) { | 692 | else { |
693 | addTag_Bookmark(bm, "usericon"); | 693 | if (!hasTag_Bookmark(bm, "usericon")) { |
694 | addTag_Bookmark(bm, "usericon"); | ||
695 | } | ||
694 | bm->icon = first_String(icon); | 696 | bm->icon = first_String(icon); |
695 | } | 697 | } |
696 | postCommand_App("bookmarks.changed"); | 698 | postCommand_App("bookmarks.changed"); |