Check if dialog is visible before setting the focus.

1 file changed