Skip to content
Snippets Groups Projects
Commit 9a288cc3 authored by Jannis Pohlmann's avatar Jannis Pohlmann
Browse files

Revert "Instantly emit a change event on the parent folder in the delete job."

This reverts commit 68924ba2.

The change introduced a crasher when too many files were deleted at
once. Too many folder reloads are not good. Perhaps we need a
removed_files closure in addition to the new_files closure.
parent fd1d1a0c
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,6 @@
#include <gio/gio.h>
#include <thunar/thunar-enum-types.h>
#include <thunar/thunar-file-monitor.h>
#include <thunar/thunar-gio-extensions.h>
#include <thunar/thunar-io-scan-directory.h>
#include <thunar/thunar-io-jobs.h>
......@@ -367,10 +366,8 @@ _thunar_io_jobs_unlink (ThunarJob *job,
GError **error)
{
ThunarJobResponse response;
ThunarFile *parent_file;
GFileInfo *info;
GError *err = NULL;
GFile *parent;
GList *file_list;
GList *lp;
gchar *base_name;
......@@ -458,25 +455,6 @@ again:
if (response == THUNAR_JOB_RESPONSE_RETRY)
goto again;
}
else
{
/* determine the parent folder of the file if there is any */
parent = g_file_get_parent (lp->data);
if (parent != NULL)
{
/* obtain the thunar file for this folder from the cache */
parent_file = thunar_file_cache_lookup (parent);
if (parent_file != NULL)
{
/* Feed a change event so that the delete event is
* picked up immediately */
thunar_file_monitor_file_changed (parent_file);
}
/* release the parent */
g_object_unref (parent);
}
}
}
/* release the file list */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment