Add setCloseOnMove for SelectionDialog