From 08b5ed14d75e7ef9c4eeeadad8edd38e486db426 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Tue, 30 Dec 2014 16:37:04 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 8343f624b..5a35b1366 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -748,7 +748,7 @@ void MainWindow::on_actionUserManual_triggered() void MainWindow::on_actionUserSurvey_triggered() { if(!survey) { - survey = new UserSurvey(); + survey = new UserSurvey(this); } survey->show(); } -- cgit v1.2.3-70-g09d2