Merge pull request #714 from ispyisail/fix/newpart-wizard-window-focus-bug281

Fix bugtracker #281: new-part wizard's element editor opens behind main window
Cannot reproduce on Debian/GNU Linux, but implementation is reasonable and clean!
This commit is contained in:
plc-user
2026-08-11 13:02:22 +02:00
committed by GitHub
+6
View File
@@ -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();
}