# HG changeset patch # User Chris Cannam # Date 1407944595 -3600 # Node ID 902756b8d8b1e9f406fbe8f42134f8be6261c5e7 # Parent 956134fa9f2459325d5ce365ffedbafa76653df6 Give some dialogs their proper parents diff -r 956134fa9f24 -r 902756b8d8b1 main/MainWindow.cpp --- a/main/MainWindow.cpp Wed Aug 13 16:18:25 2014 +0100 +++ b/main/MainWindow.cpp Wed Aug 13 16:43:15 2014 +0100 @@ -3067,7 +3067,7 @@ void MainWindow::saveSessionAsTemplate() { - QDialog *d = new QDialog; + QDialog *d = new QDialog(this); d->setWindowTitle(tr("Enter template name")); QGridLayout *layout = new QGridLayout; @@ -4326,7 +4326,7 @@ return; } - m_layerTreeDialog = new LayerTreeDialog(m_paneStack); + m_layerTreeDialog = new LayerTreeDialog(m_paneStack, this); m_layerTreeDialog->setAttribute(Qt::WA_DeleteOnClose); // see below m_layerTreeDialog->show(); }