summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r--src/ui/sidebarwidget.c6
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");