Commit 62d8e6de authored by Alexander Schwinn's avatar Alexander Schwinn

Crash on refresh if remote folder has been removed (Bug #15961)

parent 86bc38d3
......@@ -1746,11 +1746,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);
thunar_standard_view_current_directory_destroy (file, standard_view);
/* schedule thumbnail reload update */
if (!standard_view->priv->thumbnailing_scheduled)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment