summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-27 19:11:24 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-27 19:11:24 +0200
commit10e93f82aba4ebc7fbbc3a5739d2c8ae4f6cc013 (patch)
tree2aaf6b367ebc37532c4bd3346ff29632ed291b4f /src/ui
parent2c8f33e6e4394b59ba57183ee422e35d1363d905 (diff)
Fixed crash when creating a bookmark
IssueID #184
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/util.c2
1 files changed, 1 insertions, 1 deletions
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
1395 const iString *title = text_InputWidget(findChild_Widget(editor, "bmed.title")); 1395 const iString *title = text_InputWidget(findChild_Widget(editor, "bmed.title"));
1396 const iString *url = text_InputWidget(findChild_Widget(editor, "bmed.url")); 1396 const iString *url = text_InputWidget(findChild_Widget(editor, "bmed.url"));
1397 const iString *tags = text_InputWidget(findChild_Widget(editor, "bmed.tags")); 1397 const iString *tags = text_InputWidget(findChild_Widget(editor, "bmed.tags"));
1398 const iString *icon = collect_String(trimmed_String(text_LabelWidget(findChild_Widget(editor, "bmed.icon")))); 1398 const iString *icon = collect_String(trimmed_String(text_InputWidget(findChild_Widget(editor, "bmed.icon"))));
1399 const uint32_t id = add_Bookmarks(bookmarks_App(), url, title, tags, first_String(icon)); 1399 const uint32_t id = add_Bookmarks(bookmarks_App(), url, title, tags, first_String(icon));
1400 if (!isEmpty_String(icon)) { 1400 if (!isEmpty_String(icon)) {
1401 iBookmark *bm = get_Bookmarks(bookmarks_App(), id); 1401 iBookmark *bm = get_Bookmarks(bookmarks_App(), id);