diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-05-20 13:37:22 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-05-20 13:37:22 +0200 |
commit | 7d0028fb01759f24d75df8badc7d050d96f51e82 (patch) | |
tree | d95eb5e454dcd92e81d9c209b00983cdabf735cd | |
parent | Last before 0.1 release fix (diff) | |
download | rekonq-7d0028fb01759f24d75df8badc7d050d96f51e82.tar.xz |
Printing dialog pointer deleting
-rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 930a4e64..83ff514b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -572,13 +572,11 @@ void MainWindow::printRequested(QWebFrame *frame) QPrinter printer; QPointer<QPrintDialog> dialog = KdePrint::createPrintDialog(&printer, this); - if (dialog->exec() != QDialog::Accepted) + if (dialog->exec() == QDialog::Accepted) { - delete dialog; - return; + frame->print(&printer); } delete dialog; - frame->print(&printer); } |