From 10e93f82aba4ebc7fbbc3a5739d2c8ae4f6cc013 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 27 Feb 2021 19:11:24 +0200 Subject: Fixed crash when creating a bookmark IssueID #184 --- src/ui/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/util.c') diff --git a/src/ui/util.c b/src/ui/util.c index 3e57c2b5..603a65cc 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -1395,7 +1395,7 @@ static iBool handleBookmarkCreationCommands_SidebarWidget_(iWidget *editor, cons const iString *title = text_InputWidget(findChild_Widget(editor, "bmed.title")); const iString *url = text_InputWidget(findChild_Widget(editor, "bmed.url")); const iString *tags = text_InputWidget(findChild_Widget(editor, "bmed.tags")); - const iString *icon = collect_String(trimmed_String(text_LabelWidget(findChild_Widget(editor, "bmed.icon")))); + const iString *icon = collect_String(trimmed_String(text_InputWidget(findChild_Widget(editor, "bmed.icon")))); const uint32_t id = add_Bookmarks(bookmarks_App(), url, title, tags, first_String(icon)); if (!isEmpty_String(icon)) { iBookmark *bm = get_Bookmarks(bookmarks_App(), id); -- cgit v1.2.3