From 9c96eacd1cd7fd490ae4d5aea1a7ce996bd2f003 Mon Sep 17 00:00:00 2001 From: Alexander Schwinn Date: Sun, 8 Sep 2019 18:50:20 +0200 Subject: [PATCH] Deleting many files causes Thunar to hang (Bug #15871) --- thunar/thunar-shortcuts-model.c | 3 ++- thunar/thunar-window.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c index aa38b705..ede5cee7 100644 --- a/thunar/thunar-shortcuts-model.c +++ b/thunar/thunar-shortcuts-model.c @@ -1047,7 +1047,8 @@ thunar_shortcuts_model_shortcut_places (ThunarShortcutsModel *model) model->bookmarks_file = thunar_g_file_new_for_bookmarks (); /* register with the alteration monitor for the bookmarks file */ - model->bookmarks_monitor = g_file_monitor_file (model->bookmarks_file, G_FILE_MONITOR_NONE, NULL, NULL); + //model->bookmarks_monitor = g_file_monitor_file (model->bookmarks_file, G_FILE_MONITOR_NONE, NULL, NULL); + model->bookmarks_monitor = NULL; if (G_LIKELY (model->bookmarks_monitor != NULL)) { g_signal_connect (model->bookmarks_monitor, "changed", diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c index 2b06cf88..2c21e74b 100644 --- a/thunar/thunar-window.c +++ b/thunar/thunar-window.c @@ -2327,7 +2327,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS if (window->bookmark_file == NULL) { window->bookmark_file = thunar_g_file_new_for_bookmarks (); - window->bookmark_monitor = g_file_monitor_file (window->bookmark_file, G_FILE_MONITOR_NONE, NULL, NULL); + //window->bookmark_monitor = g_file_monitor_file (window->bookmark_file, G_FILE_MONITOR_NONE, NULL, NULL); + window->bookmark_monitor = NULL; if (G_LIKELY (window->bookmark_monitor != NULL)) { g_signal_connect_swapped (window->bookmark_monitor, "changed", -- 2.20.1