summaryrefslogtreecommitdiff
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
parent2c8f33e6e4394b59ba57183ee422e35d1363d905 (diff)
Fixed crash when creating a bookmark
IssueID #184
-rw-r--r--res/about/version.gmi3
-rw-r--r--src/ui/util.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/res/about/version.gmi b/res/about/version.gmi
index 8bd30dfb..bd66554b 100644
--- a/res/about/version.gmi
+++ b/res/about/version.gmi
@@ -6,6 +6,9 @@
6``` 6```
7# Release notes 7# Release notes
8 8
9## 1.2.1
10* Fixed crash when creating a bookmark.
11
9## 1.2 12## 1.2
10 13
11New features: 14New features:
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);