[Xfce4-commits] <thunar:master> Delete permanently if at least one non-local file is involved.

Jannis Pohlmann jannis at xfce.org
Thu Sep 3 14:04:02 CEST 2009


Updating branch refs/heads/master
         to dd385ea8b70a87d281e4be6e07fbf698c0f05cce (commit)
       from 0164cdb934fb1c46a8d77dda6a6799f377b73fc3 (commit)

commit dd385ea8b70a87d281e4be6e07fbf698c0f05cce
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Thu Sep 3 14:00:09 2009 +0200

    Delete permanently if at least one non-local file is involved.
    
    This restores the old pre-GIO behavior. Remote file systems and schemes
    like trash:// don't support trashing, thus we need to delete their files
    permanently.

 thunar/thunar-application.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/thunar/thunar-application.c b/thunar/thunar-application.c
index 2d0daf3..df8243c 100644
--- a/thunar/thunar-application.c
+++ b/thunar/thunar-application.c
@@ -1438,6 +1438,11 @@ thunar_application_unlink_files (ThunarApplication *application,
     {
       /* prepend the path to the path list */
       path_list = thunar_g_file_list_prepend (path_list, thunar_file_get_file (lp->data));
+
+      /* permanently delete if at least one of the file is not a local 
+       * file (e.g. resides in the trash) */
+      if (!thunar_file_is_local (lp->data))
+        permanently = TRUE;
     }
 
   /* nothing to do if we don't have any paths */



More information about the Xfce4-commits mailing list