From d3625546b58436f509164c683c1f6aa5d2029123 Mon Sep 17 00:00:00 2001 From: Till Adam Date: Tue, 26 Feb 2002 18:56:54 +0000 Subject: [PATCH] This is meant to prevent drags from one view of a dir to another view of the same dir. Kevin, is this the right place to do this? SVN revision: 5986 --- src/view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view.c b/src/view.c index 173916047..ad89e2072 100644 --- a/src/view.c +++ b/src/view.c @@ -2350,8 +2350,8 @@ e_dnd_drop(Ecore_Event * ev) if (e->win == v->win.base) { /* Dropped! Handle data */ - /* Same view? Mark to skip action */ - if( e->win == e->source_win ) + /* Same view or same underlying dir? Mark to skip action */ + if( e->win == e->source_win || v->model == v_dnd_source->model) v->drag.matching_drop_attempt = 1; /* Perform the action... */ e_dnd_handle_drop (v);