summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-11 11:47:34 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-11 11:47:34 +0200
commitb4b5e73f570bcc90634fabd24205b3047b0b93bf (patch)
tree565e13c5fefc26f8b4ba582f82cb0542888ea279 /src/webpage.cpp
parentLoad old closed tabs from session manager. (diff)
downloadrekonq-b4b5e73f570bcc90634fabd24205b3047b0b93bf.tar.xz
REVERT ME ASAP PATCH :)
This patch should fix "troubles" (read crashes) in some systems, but I think it let rekonq leaks horribly :( Studying the right solution for..
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 8d71ab5a..d266b257 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -237,7 +237,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
// NOTE
// This is probably needed just in ONE stupid case..
if (_protHandler.postHandling(reply->request(), mainFrame()))
- return reply->deleteLater();
+ return; // FIXME RE-ENABLE ME reply->deleteLater();
if (reply->error() == QNetworkReply::NoError)
{
@@ -256,7 +256,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
? KMessageBox::sorry(view(), i18n("No service can handle this :("))
: downloadRequest(reply->request());
- return reply->deleteLater();
+ return; // FIXME RE-ENABLE ME reply->deleteLater();
}
if (!isLocal)
@@ -268,10 +268,10 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
case KParts::BrowserOpenOrSaveQuestion::Save:
kDebug() << "service handling: download!";
downloadRequest(reply->request());
- return reply->deleteLater();
+ return; // FIXME RE-ENABLE ME reply->deleteLater();
case KParts::BrowserOpenOrSaveQuestion::Cancel:
- return reply->deleteLater();
+ return; // FIXME RE-ENABLE ME reply->deleteLater();
default: // non extant case
break;
@@ -307,7 +307,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
KRun::run(*appService, url, 0);
}
- return; // FIXME: crash reply->deleteLater();
+ return ; // FIXME RE-ENABLE ME reply->deleteLater();
}
}
@@ -387,7 +387,7 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply)
break;
}
- reply->deleteLater();
+ // FIXME RE-ENABLE ME reply->deleteLater();
}