[Xfce4-commits] [xfce/thunar] 01/01: Crash on refresh if remote folder has been removed (Bug #15961)

noreply at xfce.org noreply at xfce.org
Thu Sep 26 09:51:52 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   l   e   x       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/thunar.

commit e2968d2a133932a7609a6de4b0cc3549ed0ccc2f
Author: Alexander Schwinn <alexxcons at xfce.org>
Date:   Tue Sep 24 01:16:25 2019 +0200

    Crash on refresh if remote folder has been removed (Bug #15961)
---
 thunar/thunar-standard-view.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/thunar/thunar-standard-view.c b/thunar/thunar-standard-view.c
index 4d03fb9..bebfdeb 100644
--- a/thunar/thunar-standard-view.c
+++ b/thunar/thunar-standard-view.c
@@ -1776,11 +1776,19 @@ thunar_standard_view_reload (ThunarView *view,
 {
   ThunarStandardView *standard_view = THUNAR_STANDARD_VIEW (view);
   ThunarFolder       *folder;
+  ThunarFile         *file;
 
   /* determine the folder for the view model */
   folder = thunar_list_model_get_folder (standard_view->model);
   if (G_LIKELY (folder != NULL))
-    thunar_folder_reload (folder, reload_info);
+    {
+      file = thunar_folder_get_corresponding_file (folder);
+
+      if (thunar_file_exists (file))
+          thunar_folder_reload (folder, reload_info);
+      else
+          thunar_standard_view_current_directory_destroy (file, standard_view);
+    }
 
   /* schedule thumbnail reload update */
   if (!standard_view->priv->thumbnailing_scheduled)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list