diff --git a/thunar/thunar-io-jobs.c b/thunar/thunar-io-jobs.c index 242400f4..eaaa7072 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 2b2b3fff..867278ef 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)