Commit 884a2d1c authored by Oleg Solovyov's avatar Oleg Solovyov 🐴
Browse files

Don't set option tabs

QPrintDialog deletes all tabs upon destructing, which causes double-free
error.

BUG: 442845
parent 57e8a168
Pipeline #82989 passed with stage
in 7 minutes and 18 seconds
......@@ -57,7 +57,6 @@ bool CrontabPrinter::start()
// initialize the printer using the print dialog
auto printDialog = new QPrintDialog(mPrinter, nullptr);
printDialog->setOptionTabs(QList<QWidget *>() << mCrontabWidget);
printDialog->setEnabledOptions(QAbstractPrintDialog::PrintToFile);
if (printDialog->exec() == QDialog::Rejected) {
logDebug() << "Printing canceled";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment