Commit c44d1c8a authored by Jannis Pohlmann's avatar Jannis Pohlmann

Only watch the trash in the tree view side pane.

This is what we had before and it avoids a lot of critical warnings due
to unwatching files (e.g. volume mounts) that are not being watched at
parent cc5395b9
......@@ -337,7 +337,8 @@ thunar_tree_model_init (ThunarTreeModel *model)
file = thunar_file_get (lp->data, NULL);
if (G_LIKELY (file != NULL))
/* watch the file for changes */
/* watch the trash for changes */
if (thunar_file_is_trashed (file) && thunar_file_is_root (file))
thunar_file_watch (file);
/* create and append the new node */
......@@ -1270,7 +1271,8 @@ thunar_tree_model_item_reset (ThunarTreeModelItem *item)
/* disconnect from the file */
if (G_LIKELY (item->file != NULL))
/* unwatch the file */
/* unwatch the trash */
if (thunar_file_is_trashed (item->file) && thunar_file_is_root (item->file))
thunar_file_unwatch (item->file);
/* release and reset the file */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment