diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-17 21:25:57 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-18 10:14:27 -0700 |
commit | 10ed5da32565e48df0f429695416127b3007c0de (patch) | |
tree | e663d848af0ac8b9a4f669a42ac668bcdc479ac3 /qt-ui/printdialog.cpp | |
parent | 7a70f15f9b3f71666e51f33f185541e0d3fb4cff (diff) | |
download | subsurface-10ed5da32565e48df0f429695416127b3007c0de.tar.gz |
Close the print dialog after a sucessfull print
I think it's intuitive to do not warn if everything was according to the
plan, and keep the dialog open after a print was due is something that I
find it strange.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printdialog.cpp')
-rw-r--r-- | qt-ui/printdialog.cpp | 4 |
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) |