[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 10:11:11 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       x   f   c   e   -   4   .   1   2   
   in repository xfce/thunar.

commit 28ae8789af1ce0ce67515d6c9d320283c7595788
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 4d248c3..67a046e 100644
--- a/thunar/thunar-standard-view.c
+++ b/thunar/thunar-standard-view.c
@@ -1722,11 +1722,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