Fixes NB#125952, modality issue when trying to open a new editor after the "lose...