summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authoradjam <adjam@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-05-20 12:11:23 +0000
committeradjam <adjam@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-05-20 12:11:23 +0000
commit4a115e6a45c28479c2b4a2afd631c746392ca2cb (patch)
treed95eb5e454dcd92e81d9c209b00983cdabf735cd /src/mainwindow.cpp
parentLast before 0.1 release fix (diff)
downloadrekonq-4a115e6a45c28479c2b4a2afd631c746392ca2cb.tar.xz
Printing dialog pointer deleting
git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/playground/network/rekonq@970526 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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);
}