diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c index 42be0a853171bb6c980abbcc286eceb05a46d2ed..ccb398ff770ec64d8d1069aceb36170e3c345a03 100644 --- a/thunar/thunar-window.c +++ b/thunar/thunar-window.c @@ -2759,7 +2759,6 @@ thunar_window_action_view_changed (GtkRadioAction *action, { ThunarFile *file = NULL; ThunarFile *current_directory = NULL; - ThunarHistory *history = NULL; GtkWidget *old_view; GList *selected_files = NULL; @@ -2779,9 +2778,6 @@ thunar_window_action_view_changed (GtkRadioAction *action, /* remember the file selection */ selected_files = thunar_g_file_list_copy (thunar_component_get_selected_files (THUNAR_COMPONENT (old_view))); - /* get a copy of the history */ - history = thunar_standard_view_copy_history (THUNAR_STANDARD_VIEW (old_view)); - /* update the UI (else GtkUIManager will crash on merging) */ gtk_ui_manager_ensure_update (window->ui_manager); } @@ -2822,10 +2818,6 @@ thunar_window_action_view_changed (GtkRadioAction *action, if (gtk_widget_get_visible (GTK_WIDGET (window))) g_object_set (G_OBJECT (window->preferences), "last-view", g_type_name (window->view_type), NULL); - /* use the copy of the old history if available */ - if (history != NULL) - thunar_standard_view_set_history (THUNAR_STANDARD_VIEW (window->view), history); - /* release the file references */ if (G_UNLIKELY (file != NULL)) g_object_unref (G_OBJECT (file));