diff src/gtk/dnd.c @ 660:3bf77096052c

2005-1-16 Brian Masney <masneyb@gftp.org> * src/gtk/dnd.c (openurl_get_drag_data) - if the client is busy with the server, then don't process the drop request (closes #162773) (from Aurelien Jarno <aurelien@aurel32.net>)
author masneyb
date Sun, 16 Jan 2005 15:39:28 +0000
parents fa0838b22b14
children 8990a8a26ccf
line wrap: on
line diff
--- a/src/gtk/dnd.c	Sun Jan 16 15:35:21 2005 +0000
+++ b/src/gtk/dnd.c	Sun Jan 16 15:39:28 2005 +0000
@@ -116,6 +116,14 @@
 		       gint y, GtkSelectionData * selection_data, guint info,
 		       guint32 clk_time, gpointer data)
 {
+  if (current_wdata->request->stopable)
+    {
+      ftp_log (gftp_logging_misc, NULL,
+               _("%s: Please hit the stop button first to do anything else\n"),
+               _("Connect"));
+      return;
+    }
+
   if ((selection_data->length >= 0) && (selection_data->format == 8)) 
     {
       if (GFTP_IS_CONNECTED (current_wdata->request))