GNOME Bugzilla – Bug 791278
Reproducible crash creating a new file in an empty folder
Last modified: 2017-12-06 00:17:29 UTC
Traceback:
+ Trace 238227
Thread 1 (Thread 0x7fd2947cbb00 (LWP 19445))
Reproducer: Create a folder in the project tree Create a new file in that folder Version: 81410f2088f4a32182ba0379e81675a101d407ec
Created attachment 365076 [details] [review] project-tree: remove synthesized "Empty" node before insertion If we have a synthesized "Empty" node in the tree, we should remove it before inserting our newly created file. Otherwise, we'll do a node comparison for insertion sort and segfault from a NULL DzlTreeNode:item property.
Looks like I forgot that we auto expand that node when inserting (causing the empty node to be created for visual feedback to the user). This removes our synthesized node so the insertion sort works as expected. Attachment 365076 [details] pushed as 4861ba8 - project-tree: remove synthesized "Empty" node before insertion