diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index 0878817..3d2dec4 100644 --- a/thunar/thunar-file.c +++ b/thunar/thunar-file.c @@ -1938,8 +1938,8 @@ thunar_file_accepts_drop (ThunarFile *file, if (G_UNLIKELY (thunar_g_file_is_trashed (lp->data))) break; - /* determine the cached version of the source file */ - ofile = thunar_file_cache_lookup (lp->data); + /* get the source file. */ + ofile = thunar_file_get (lp->data, NULL); /* we have only move if we know the source and both the source and the target * are on the same disk, and the source file is owned by the current user. @@ -1952,8 +1952,13 @@ thunar_file_accepts_drop (ThunarFile *file, { /* default to copy and get outa here */ suggested_action = GDK_ACTION_COPY; + if (ofile != NULL) + g_object_unref(ofile); break; } + + if (ofile != NULL) + g_object_unref(ofile); } } }