summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-05-20 13:37:22 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-05-20 13:37:22 +0200
commit7d0028fb01759f24d75df8badc7d050d96f51e82 (patch)
treed95eb5e454dcd92e81d9c209b00983cdabf735cd /src/mainwindow.cpp
parentLast before 0.1 release fix (diff)
downloadrekonq-7d0028fb01759f24d75df8badc7d050d96f51e82.tar.xz
Printing dialog pointer deleting
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
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);
}