From: Gustavo Noronha Silva Date: Sun, 28 Jan 2018 18:20:19 +0900 Subject: fix small bug in addressbook window Forwarded: yes --- src/addressbook.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/addressbook.c b/src/addressbook.c index b013507..592050d 100644 --- a/src/addressbook.c +++ b/src/addressbook.c @@ -1326,6 +1326,17 @@ static void addressbook_to_clicked(GtkButton *button, gpointer data) if (new_compose) compose_block_modified(addrbook.target_compose); + /* + * nothing selected, but maybe there's something on the text entry + */ + if (node == NULL) { + gchar *addr; + addr = gtk_entry_get_text(GTK_ENTRY(addrbook.entry)); + if (addr) + compose_entry_append(addrbook.target_compose, addr, + (ComposeEntryType) data); + } + while( node ) { AddressObject *obj = node->data; Compose *compose = addrbook.target_compose;