aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/printdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp
index 488afb55d..8f1a5ca68 100644
--- a/qt-ui/printdialog.cpp
+++ b/qt-ui/printdialog.cpp
@@ -75,8 +75,10 @@ void PrintDialog::previewClicked(void)
void PrintDialog::printClicked(void)
{
QPrintDialog printDialog(&printer, this);
- if (printDialog.exec() == QDialog::Accepted)
+ if (printDialog.exec() == QDialog::Accepted){
printLayout->print();
+ close();
+ }
}
void PrintDialog::onPaintRequested(QPrinter *printerPtr)