Include patch addr completion patch from Gustavo Noronha.
authorMatch Grun <match@dimensional.com>
Tue, 11 Jun 2002 05:37:28 +0000 (05:37 +0000)
committerMatch Grun <match@dimensional.com>
Tue, 11 Jun 2002 05:37:28 +0000 (05:37 +0000)
src/addressbook.c

index 3beba73287bc0db6fbd069021f8a5e619b8b499d..7dd057fcbd7250814ca46ab1d22e6f884975e3ab 100644 (file)
@@ -1053,6 +1053,16 @@ static void addressbook_to_clicked(GtkButton *button, gpointer data)
        compose = addrbook.target_compose;
        if( ! compose ) return;
 
+       /* Nothing selected, but maybe there is something in text entry */
+       if ( list == NULL ) {
+               addr = gtk_entry_get_text( GTK_ENTRY( addrbook.entry) );
+               if ( addr ) {
+                       compose_entry_append(
+                               compose, addr, (ComposeEntryType)data );
+               }
+       }
+
+       /* Select from address list */
        list = addrselect_get_list( _addressSelect_ );
        node = list;
        while( node ) {