From 606fb5259bd6d1b5c91f12b57da0e122601e500c Mon Sep 17 00:00:00 2001 From: Reuben Green Date: Sat, 14 Mar 2020 00:49:05 +0000 Subject: [PATCH] Possible fix for bug #15172 Possible fix for crash or error messages when inserting USB device with side pane in tree mode. --- thunar/thunar-tree-model.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thunar/thunar-tree-model.c b/thunar/thunar-tree-model.c index 1848395f..0ab68a56 100644 --- a/thunar/thunar-tree-model.c +++ b/thunar/thunar-tree-model.c @@ -1095,13 +1095,13 @@ thunar_tree_model_device_added (ThunarDeviceMonitor *device_monitor, /* determine the iterator for the new node */ GTK_TREE_ITER_INIT (iter, model->stamp, node); - /* add the dummy node */ - thunar_tree_model_node_insert_dummy (node, model); - /* tell the view about the new node */ path = gtk_tree_model_get_path (GTK_TREE_MODEL (model), &iter); gtk_tree_model_row_inserted (GTK_TREE_MODEL (model), path, &iter); gtk_tree_path_free (path); + + /* add the dummy node */ + thunar_tree_model_node_insert_dummy (node, model); } -- 2.25.1