Fix for segmentation faults reported in issue 268.
Puts back the missing check that the tree item has a parent. Seems to stop the occurrence of the segmentation faults.
Closes issue #268 (closed).
Puts back the missing check that the tree item has a parent. Seems to stop the occurrence of the segmentation faults.
Closes issue #268 (closed).