Camp wizard is now accepted on close report preview.

master
Josef Rokos 7 years ago
parent b10f21ad3c
commit c7d7886d0e

@ -487,6 +487,11 @@ void CampWizard::on_btnPrint_clicked()
filler.fill(report, m_data->id()); filler.fill(report, m_data->id());
ReportViewer *viewer = new ReportViewer(this); ReportViewer *viewer = new ReportViewer(this);
viewer->setAttribute(Qt::WA_DeleteOnClose);
viewer->setReport(report); viewer->setReport(report);
viewer->openPreview(); viewer->openPreview();
connect(viewer, &QDialog::finished, [this](int){
this->accept();
});
} }

Loading…
Cancel
Save