comparison main/MainWindow.cpp @ 762:902756b8d8b1

Give some dialogs their proper parents
author Chris Cannam
date Wed, 13 Aug 2014 16:43:15 +0100
parents 956134fa9f24
children 91d821455fa5 8b51bfe70625
comparison
equal deleted inserted replaced
761:956134fa9f24 762:902756b8d8b1
3065 } 3065 }
3066 3066
3067 void 3067 void
3068 MainWindow::saveSessionAsTemplate() 3068 MainWindow::saveSessionAsTemplate()
3069 { 3069 {
3070 QDialog *d = new QDialog; 3070 QDialog *d = new QDialog(this);
3071 d->setWindowTitle(tr("Enter template name")); 3071 d->setWindowTitle(tr("Enter template name"));
3072 3072
3073 QGridLayout *layout = new QGridLayout; 3073 QGridLayout *layout = new QGridLayout;
3074 d->setLayout(layout); 3074 d->setLayout(layout);
3075 3075
4324 m_layerTreeDialog->show(); 4324 m_layerTreeDialog->show();
4325 m_layerTreeDialog->raise(); 4325 m_layerTreeDialog->raise();
4326 return; 4326 return;
4327 } 4327 }
4328 4328
4329 m_layerTreeDialog = new LayerTreeDialog(m_paneStack); 4329 m_layerTreeDialog = new LayerTreeDialog(m_paneStack, this);
4330 m_layerTreeDialog->setAttribute(Qt::WA_DeleteOnClose); // see below 4330 m_layerTreeDialog->setAttribute(Qt::WA_DeleteOnClose); // see below
4331 m_layerTreeDialog->show(); 4331 m_layerTreeDialog->show();
4332 } 4332 }
4333 4333
4334 void 4334 void