diff options
author | Alexander Schwinn <alexxcons@xfce.org> | 2018-12-10 23:08:59 +0100 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2018-12-10 23:12:28 +0100 |
commit | 95925eb023144ebe199234b65bafc1f08696f5de (patch) | |
tree | de255f8452f2482c1f790427f7e2fa80e4d8f798 /thunar | |
parent | 8d7d2732a51b4e5c3b4472298583936f6000f987 (diff) | |
download | thunar-95925eb023144ebe199234b65bafc1f08696f5de.tar.gz |
Thunar rarely freezes when switching to tree-view (#14960)
Diffstat (limited to 'thunar')
-rw-r--r-- | thunar/thunar-tree-model.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/thunar/thunar-tree-model.c b/thunar/thunar-tree-model.c index 9eb652ff..f1f3e25d 100644 --- a/thunar/thunar-tree-model.c +++ b/thunar/thunar-tree-model.c @@ -1084,13 +1084,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); } |