Merge pull request #23 from gabi2/master

fixed segfault in tree widget (bnc #866145)