[PATCH 3/3] Connect the UserSurvey to its qt-parrent
Anton Lundin
glance at acc.umu.se
Tue Dec 30 07:37:04 PST 2014
This makes sure the UserSurvey object is removed correctly by the qt
object tracking system.
Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
qt-ui/mainwindow.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 8343f62..5a35b13 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();
}
--
2.1.0
More information about the subsurface
mailing list