aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Boris Barbulovski <bbarbulovski@gmail.com>2014-02-08 20:12:13 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-09 08:15:42 -0800
commit02e9a6d07ba6abf558ba1dc9c5721f2429cfd566 (patch)
treeab404cfdaebd75578e2ca7dba2772ac8ea541d25 /qt-ui/mainwindow.cpp
parent3086741d494feeffe77a77776d642b7266eda559 (diff)
downloadsubsurface-02e9a6d07ba6abf558ba1dc9c5721f2429cfd566.tar.gz
PrintDialog class cleanup.
* Remove static PrintDialog::instance() method * Remove void PrintDialog::runDialog() method * construct/destruct print dialog on demand Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
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()