mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-13 10:04:13 +02:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user