[Xfce4-commits] [xfce/thunar] 01/01: Update progress when deleting files (Bug #14102)

noreply at xfce.org noreply at xfce.org
Sun Jul 29 22:54:01 CEST 2018


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

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       x   f   c   e   -   4   .   1   4   
   in repository xfce/thunar.

commit 86b7f752c88ec413f11b268a16af4ee8df213811
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sun Jul 29 17:52:02 2018 -0300

    Update progress when deleting files (Bug #14102)
---
 thunar/thunar-io-jobs.c | 3 +++
 thunar/thunar-job.c     | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/thunar/thunar-io-jobs.c b/thunar/thunar-io-jobs.c
index 242400f..eaaa707 100644
--- a/thunar/thunar-io-jobs.c
+++ b/thunar/thunar-io-jobs.c
@@ -454,6 +454,9 @@ _thunar_io_jobs_unlink (ThunarJob  *job,
       if (thunar_g_file_is_root (lp->data))
         continue;
 
+      /* update progress information */
+      thunar_job_processing_file (THUNAR_JOB (job), lp);
+
 again:
       /* try to delete the file */
       if (g_file_delete (lp->data, exo_job_get_cancellable (EXO_JOB (job)), &err))
diff --git a/thunar/thunar-job.c b/thunar/thunar-job.c
index 2b2b3ff..867278e 100644
--- a/thunar/thunar-job.c
+++ b/thunar/thunar-job.c
@@ -628,7 +628,7 @@ thunar_job_processing_file (ThunarJob *job,
       /* determine the number of files processed so far */
       for (lp = job->priv->total_files, n_processed = 0;
            lp != current_file;
-           lp = lp->next);
+           lp = lp->next, n_processed++);
 
       /* emit only if n_processed is a multiple of 8 */
       if ((n_processed % 8) == 0)

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


More information about the Xfce4-commits mailing list