[Xfce4-commits] <thunar:nick/fixes-for-master> Force a reload after deleting a file.

Nick Schermer noreply at xfce.org
Tue Dec 15 12:38:01 CET 2009


Updating branch refs/heads/nick/fixes-for-master
         to e30984d8f60110df943a57c0d0f57dc14b146026 (commit)
       from 824885ed61e44c46e666ffc5c737b1a4a9a44b7e (commit)

commit e30984d8f60110df943a57c0d0f57dc14b146026
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Dec 15 12:32:05 2009 +0100

    Force a reload after deleting a file.
    
    Like the new files fix, this will refresh the view after
    the user deleted/trashed a file.

 thunar/thunar-standard-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/thunar/thunar-standard-view.c b/thunar/thunar-standard-view.c
index b7362f9..dae21c4 100644
--- a/thunar/thunar-standard-view.c
+++ b/thunar/thunar-standard-view.c
@@ -1975,6 +1975,9 @@ thunar_standard_view_action_delete (GtkAction          *action,
   application = thunar_application_get ();
   thunar_application_unlink_files (application, GTK_WIDGET (standard_view), standard_view->selected_files);
   g_object_unref (G_OBJECT (application));
+
+  /* manually reload the folder to avoid a delay */
+  thunar_standard_view_reload (THUNAR_VIEW (standard_view));
 }
 
 



More information about the Xfce4-commits mailing list