summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-20 11:22:59 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-20 11:22:59 +0200
commitcaadc8d30c2cc51dd784bb487c4d696ad1152f92 (patch)
treeb1eff3b5975307861d8b8559ae95163f12de15f9
parentdeleting replies as explained in QNetworkAccessManager docs (diff)
downloadrekonq-caadc8d30c2cc51dd784bb487c4d696ad1152f92.tar.xz
Partially fixing deleteLater related crashes. But... why these crashes
happen if Qt Docs say to delete (later) them?
-rw-r--r--src/webpage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 6cc9d531..2b2957f6 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -252,7 +252,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
? KMessageBox::sorry(view(), i18n("No service can handle this :(") )
: downloadRequest( reply->request() );
- return reply->deleteLater();
+ return;
}
if(!isLocal)
@@ -264,7 +264,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
case KParts::BrowserOpenOrSaveQuestion::Save:
kDebug() << "service handling: download!";
downloadRequest( reply->request() );
- return reply->deleteLater();
+ return;
case KParts::BrowserOpenOrSaveQuestion::Cancel:
return reply->deleteLater();
@@ -290,7 +290,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
html += "</html>";
mainFrame()->setHtml(html, url);
- return reply->deleteLater();
+ return;
}
}