Fix for FileTreeComponent::setSelectedFile