[Xfce4-commits] [xfce/thunar] 01/01: Fallback to non-cached version of source file (bug #9142)

noreply at xfce.org noreply at xfce.org
Fri Mar 6 18:38:53 CET 2015


This is an automated email from the git hooks/post-receive script.

hjudt pushed a commit to branch master
in repository xfce/thunar.

commit cdfdb7290abb270f5f98c93089c3b6e3c35859bc
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date:   Sun Feb 22 23:34:45 2015 +0100

    Fallback to non-cached version of source file (bug #9142)
---
 thunar/thunar-file.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 9b5aa9b..9dedf47 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -1978,6 +1978,10 @@ thunar_file_accepts_drop (ThunarFile     *file,
               /* determine the cached version of the source file */
               ofile = thunar_file_cache_lookup (lp->data);
 
+              /* fallback to non-cached version */
+              if (ofile == NULL)
+                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.
                */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list