diff --git a/sources/newelementwizard.cpp b/sources/newelementwizard.cpp index afa30fa9e..3cd3870e8 100644 --- a/sources/newelementwizard.cpp +++ b/sources/newelementwizard.cpp @@ -252,4 +252,10 @@ void NewElementWizard::createNewElement() loc_.addToPath(m_chosen_file); edit_new_element -> setLocation(loc_); edit_new_element -> show(); + // Without this, the just-closed wizard can leave the main window + // as the active/key window (bugtracker #281, reported on macOS): + // the new editor is created and shown, but stays behind the main + // window and doesn't surface in the Dock/Windows menu. + edit_new_element -> raise(); + edit_new_element -> activateWindow(); }