changeset 762:902756b8d8b1

Give some dialogs their proper parents
author Chris Cannam
date Wed, 13 Aug 2014 16:43:15 +0100
parents 956134fa9f24
children 7374badd5f9e
files main/MainWindow.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();
 }