Mercurial > gftp.yaz
diff lib/protocols.c @ 275:5810b0f97eee
2003-9-21 Brian Masney <masneyb@gftp.org>
* lib/protocols.c (gftp_parse_bookmark) lib/gftp.h lib/bookmark.c
src/gtk/bookmarks.c - added pointer to refresh_local variable that is
enabled if the local directory was changed. In src/gtk/bookmarks.c, if
the local directory was changed, refresh the directory listing.
author | masneyb |
---|---|
date | Sun, 21 Sep 2003 17:33:45 +0000 |
parents | dbf13a10be13 |
children | 1c7cde8a3a53 |
line wrap: on
line diff
--- a/lib/protocols.c Sun Sep 21 16:50:49 2003 +0000 +++ b/lib/protocols.c Sun Sep 21 17:33:45 2003 +0000 @@ -478,7 +478,7 @@ int gftp_parse_bookmark (gftp_request * request, gftp_request * local_request, - const char * bookmark) + const char * bookmark, int *refresh_local) { gftp_logging_func logging_function; gftp_bookmarks_var * tempentry; @@ -523,7 +523,12 @@ if (local_request != NULL && tempentry->local_dir != NULL && *tempentry->local_dir != '\0') - gftp_set_directory (local_request, tempentry->local_dir); + { + gftp_set_directory (local_request, tempentry->local_dir); + *refresh_local = 1; + } + else + *refresh_local = 0; for (i = 0; gftp_protocols[i].name; i++) {