diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-20 11:22:59 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-20 11:22:59 +0200 |
commit | caadc8d30c2cc51dd784bb487c4d696ad1152f92 (patch) | |
tree | b1eff3b5975307861d8b8559ae95163f12de15f9 /src/webpage.cpp | |
parent | deleting replies as explained in QNetworkAccessManager docs (diff) | |
download | rekonq-caadc8d30c2cc51dd784bb487c4d696ad1152f92.tar.xz |
Partially fixing deleteLater related crashes. But... why these crashes
happen if Qt Docs say to delete (later) them?
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 6 |
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; } } |