diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 55e4c4db7..4173c5f07 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -1291,6 +1291,6 @@ void MainWindow::turnOffNdlTts() void MainWindow::on_actionExport_triggered() { - DiveLogExportDialog *diveLogExport = new DiveLogExportDialog(this); - diveLogExport->show(); + DiveLogExportDialog diveLogExport; + diveLogExport.exec(); }