diff options
-rw-r--r-- | res/about/version.gmi | 3 | ||||
-rw-r--r-- | src/ui/util.c | 2 |
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 | ||
11 | New features: | 14 | New 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); |