Skip to content
Snippets Groups Projects
Commit 5cb19a95 authored by Gagik Vardanyan's avatar Gagik Vardanyan
Browse files

Re #19527 print dialog on stack

parent f1120683
No related branches found
No related tags found
No related merge requests found
......@@ -328,9 +328,9 @@ void pqHelpWindow::showPage(const QUrl& url)
//-----------------------------------------------------------------------------
void pqHelpWindow::printPage() {
QPrinter printer;
QPrintDialog *dialog = new QPrintDialog(&printer, this);
dialog->setWindowTitle(tr("Print Document"));
if (dialog->exec() != QDialog::Accepted)
QPrintDialog dialog(&printer, this);
dialog.setWindowTitle(tr("Print Document"));
if (dialog.exec() != QDialog::Accepted)
return;
m_browser->print(&printer);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment