Index: thunar/thunar-location-button.c =================================================================== --- thunar/thunar-location-button.c (revision 21082) +++ thunar/thunar-location-button.c (working copy) @@ -864,6 +864,10 @@ /* disconnect from the previous file */ if (location_button->file != NULL) { + /* stop watching the file */ + thunar_file_unwatch (location_button->file); + + /* disconnect signals and release reference */ g_signal_handlers_disconnect_by_func (G_OBJECT (location_button->file), thunar_location_button_file_changed, location_button); g_object_unref (G_OBJECT (location_button->file)); } @@ -877,6 +881,9 @@ /* take a reference on the new file */ g_object_ref (G_OBJECT (file)); + /* watch the file for changes */ + thunar_file_watch (file); + /* stay informed about changes to the file */ g_signal_connect_swapped (G_OBJECT (file), "changed", G_CALLBACK (thunar_location_button_file_changed), location_button);