summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/diveplanner.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp
index 13f540124..7244039b6 100644
--- a/desktop-widgets/diveplanner.cpp
+++ b/desktop-widgets/diveplanner.cpp
@@ -588,9 +588,9 @@ void PlannerWidgets::printDecoPlan()
free(disclaimer);
QPrinter printer;
- QPrintDialog *dialog = new QPrintDialog(&printer, MainWindow::instance());
- dialog->setWindowTitle(tr("Print runtime table"));
- if (dialog->exec() != QDialog::Accepted)
+ QPrintDialog dialog(&printer, MainWindow::instance());
+ dialog.setWindowTitle(tr("Print runtime table"));
+ if (dialog.exec() != QDialog::Accepted)
return;
/* render the profile as a pixmap that is inserted as base64 data into a HTML <img> tag