From 02e9a6d07ba6abf558ba1dc9c5721f2429cfd566 Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Sat, 8 Feb 2014 20:12:13 +0100 Subject: PrintDialog class cleanup. * Remove static PrintDialog::instance() method * Remove void PrintDialog::runDialog() method * construct/destruct print dialog on demand Signed-off-by: Boris Barbulovski Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qt-ui/mainwindow.cpp') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 73191dacf..0cafa08cf 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -211,7 +211,9 @@ void MainWindow::on_actionExportUDDF_triggered() void MainWindow::on_actionPrint_triggered() { - PrintDialog::instance()->runDialog(); + PrintDialog dlg(this); + + dlg.exec(); } void MainWindow::disableDcShortcuts() -- cgit v1.2.3-70-g09d2