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
This commit is contained in:
Till Adam 2002-02-26 18:56:54 +00:00
parent fd0bd775f6
commit d3625546b5
1 changed files with 2 additions and 2 deletions

View File

@ -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);