Flushes UI events in AbstractTreeItem.doubleClick() method. Fixes #774