Fix focusing of edit window when attempting to open it again #193