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
@ -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…
x
Reference in New Issue
Block a user