Fork : Fix freeze when going to minimize to tray when dialog OK is on screen.