summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp27
1 files changed, 19 insertions, 8 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 99a1a6d2..d266b257 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -101,6 +101,7 @@ static bool domainSchemeMatch(const QUrl& u1, const QUrl& u2)
WebPage::WebPage(QWidget *parent)
: KWebPage(parent, KWalletIntegration)
+ , _networkAnalyzer(false)
{
// ----- handling unsupported content...
setForwardUnsupportedContent(true);
@@ -236,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)
{
@@ -255,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)
@@ -267,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;
@@ -306,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();
}
}
@@ -386,7 +387,7 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply)
break;
}
- reply->deleteLater();
+ // FIXME RE-ENABLE ME reply->deleteLater();
}
@@ -576,8 +577,6 @@ void WebPage::showSSLInfo(QPoint)
}
-
-
void WebPage::updateImage(bool ok)
{
if (ok)
@@ -586,3 +585,15 @@ void WebPage::updateImage(bool ok)
p.snapFinished();
}
}
+
+
+bool WebPage::hasNetworkAnalyzerEnabled() const
+{
+ return _networkAnalyzer;
+}
+
+
+void WebPage::enableNetworkAnalyzer(bool b)
+{
+ _networkAnalyzer = b;
+}