diff src/gtk/menu-items.c @ 337:5f9d5aee0c1c

2003-12-10 Brian Masney <masneyb@gftp.org> * src/gtk/gftp-gtk.c src/gtk/menu-items.c src/gtk/misc-gtk.c - check for a timeout from the remote server when refreshing the directory listing and changing directores. If it did, reconnect to the server.
author masneyb
date Sat, 13 Dec 2003 20:36:39 +0000
parents cdabbe5c9a95
children eedc2c5727fa
line wrap: on
line diff
--- a/src/gtk/menu-items.c	Sat Dec 13 19:26:27 2003 +0000
+++ b/src/gtk/menu-items.c	Sat Dec 13 20:36:39 2003 +0000
@@ -479,6 +479,10 @@
 
   wdata = data;
   edttxt = gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (wdata->combo)->entry));
+
+  if (check_reconnect (wdata) < 0)
+    return (0);
+
   if (!GFTP_IS_CONNECTED (wdata->request) && *edttxt != '\0')
     {
       toolbar_hostedit (NULL, NULL);