mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-06-23 07:54:13 +02:00
Merge pull request #528 from ispyisail/fix/project-props-dialog-modality
Merged as discussed in #527 Thanks @ispyisail
This commit is contained in:
@@ -63,7 +63,13 @@ ProjectPropertiesDialog::~ProjectPropertiesDialog ()
|
||||
*/
|
||||
void ProjectPropertiesDialog::exec()
|
||||
{
|
||||
m_properties_dialog->setWindowModality(Qt::WindowModal);
|
||||
// ApplicationModal (not WindowModal) so no other window — including other
|
||||
// MDI subwindows — can dispatch events while the dialog holds raw
|
||||
// QETProject* pointers in its config pages. WindowModal only blocks the
|
||||
// parent ProjectView; the rest of the MDI area stays live, which allowed
|
||||
// new_project / close_project to replace the project under the dialog
|
||||
// and cause a SIGSEGV. See issue #527.
|
||||
m_properties_dialog->setWindowModality(Qt::ApplicationModal);
|
||||
m_properties_dialog -> exec();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user