Skip to content
Snippets Groups Projects
Commit ff58ed28 authored by Andrzej's avatar Andrzej
Browse files

Renaming a file from another file manager... (bug #11430)

(Matt32)

When renaming a file from $HOME directory with midnight commander, it will disappear almost immediately in Thunar window but the renamed file does not show up.

Steps to reproduce the bug:
- Open Thunar to $HOME
- In a terminal, use 'mc' to rename a file in $HOME directory
- The file disappears in Thunar window
- The file with the new name does not show up in Thunar window.

The same test will work with Caja (MATE Desktop) file manager.
parent 7fde0c0a
No related branches found
No related tags found
No related merge requests found
......@@ -555,7 +555,7 @@ thunar_folder_finished (ExoJob *job,
/* add us to the file alteration monitor */
folder->monitor = g_file_monitor_directory (thunar_file_get_file (folder->corresponding_file),
G_FILE_MONITOR_NONE, NULL, NULL);
G_FILE_MONITOR_SEND_MOVED, NULL, NULL);
if (G_LIKELY (folder->monitor != NULL))
g_signal_connect (folder->monitor, "changed", G_CALLBACK (thunar_folder_monitor), folder);
......@@ -741,6 +741,11 @@ thunar_folder_monitor (GFileMonitor *monitor,
/* update/destroy the file */
if (event_type == G_FILE_MONITOR_EVENT_DELETED)
thunar_file_destroy (lp->data);
else if (event_type == G_FILE_MONITOR_EVENT_MOVED)
{
thunar_file_destroy (lp->data);
thunar_file_reload (folder->corresponding_file);
}
else
{
#if DEBUG_FILE_CHANGES
......
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