mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
7a70f15f9b
commit
10ed5da325
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue