discomfitor pushed a commit to branch master.

commit 65e4442f1c6fb4ce2dc5546eb5d83742f9fe72b6
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed May 29 14:38:53 2013 +0100

    block repeated mozilla url drags which would overwrite an existing link
---
 src/bin/e_fm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c
index 4a9b9a7..2be5402 100644
--- a/src/bin/e_fm.c
+++ b/src/bin/e_fm.c
@@ -6769,6 +6769,11 @@ _e_fm2_cb_dnd_selection_notify(void *data, const char 
*type, void *event)
                }
              else
                snprintf(buf, sizeof(buf), "%s/Link to %s.desktop", 
sd->realpath, s);
+             if (ecore_file_exists(buf))
+               {
+                  e_util_dialog_show(_("Error"), _("A link to the requested 
URL already exists!"));
+                  continue;
+               }
              desktop = efreet_desktop_empty_new(buf);
              desktop->type = EFREET_DESKTOP_TYPE_LINK;
              snprintf(buf, sizeof(buf), "Link to %s", *name);

-- 

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1

Reply via email to