Connect the UserSurvey to its qt-parrent

This makes sure the UserSurvey object is removed correctly by the qt
object tracking system.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2014-12-30 16:37:04 +01:00 committed by Dirk Hohndel
parent db96850782
commit 08b5ed14d7

View file

@ -748,7 +748,7 @@ void MainWindow::on_actionUserManual_triggered()
void MainWindow::on_actionUserSurvey_triggered() void MainWindow::on_actionUserSurvey_triggered()
{ {
if(!survey) { if(!survey) {
survey = new UserSurvey(); survey = new UserSurvey(this);
} }
survey->show(); survey->show();
} }