Fix selecting folders in FileItemDelegate.