Mercurial > gftp.yaz
diff src/gtk/gftp-gtk.c @ 218:de6a2e8e51cb
2003-7-9 Brian Masney <masneyb@gftp.org>
* lib/config_file.c (gftp_write_config_file) - fix for writing out
list items to the config file.
* lib/config_file.c lib/gftp.h - added gftp_free_proxy_hosts() and
gftp_copy_proxy_hosts()
* lib/protocols.c (gftp_connect_server) - look up dont_use_proxy
instead of ext
* lib/protocols.c lib/sshv2.c src/gtk/dnd.c src/gtk/menu-items.c -
when calling g_build_path(), set the directory separator to / instead
of G_DIR_SEPARATOR_S
* src/gtk/gftp-gtk.c (toolbar_hostedit) - fixed crash
* src/gtk/gftp-gtk.h - removed gotbytes from gftp_window_data
structure
* src/gtk/options_dialog.c - show proxy hosts in options dialog
* docs/sample.gftp/gftprc - new default config file
author | masneyb |
---|---|
date | Wed, 09 Jul 2003 23:25:56 +0000 |
parents | 0098dae654a5 |
children | a85a097bbb02 |
line wrap: on
line diff
--- a/src/gtk/gftp-gtk.c Tue Jul 08 19:44:12 2003 +0000 +++ b/src/gtk/gftp-gtk.c Wed Jul 09 23:25:56 2003 +0000 @@ -914,6 +914,8 @@ return; gftp_set_hostname (current_wdata->request, gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (hostedit)->entry))); + if (current_wdata->request->hostname == NULL) + return; alltrim (current_wdata->request->hostname); if (current_wdata->request->need_hostport && @@ -943,7 +945,9 @@ add_history (portedit, &tmplistvar->list, &tmplistvar->num_items, txt); gftp_set_username (current_wdata->request, gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (useredit)->entry))); - alltrim (current_wdata->request->username); + if (current_wdata->request->username != NULL) + alltrim (current_wdata->request->username); + gftp_lookup_global_option ("userhistory", &tmplistvar); add_history (useredit, &tmplistvar->list, &tmplistvar->num_items, @@ -953,7 +957,8 @@ gtk_entry_get_text (GTK_ENTRY (passedit))); gftp_set_directory (current_wdata->request, gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (current_wdata->combo)->entry))); - alltrim (current_wdata->request->directory); + if (current_wdata->request->directory != NULL) + alltrim (current_wdata->request->directory); add_history (current_wdata->combo, current_wdata->history, current_wdata->histlen, current_wdata->request->directory);