From 06eeee98a92cc01b0b193c94c3d7c357a58f9332 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 14 Feb 2010 12:23:53 +0100 Subject: Some stupid changes && kDebug sentences added to better debug download system --- src/webpage.cpp | 7 +++++-- src/webpage.h | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/webpage.cpp b/src/webpage.cpp index 0f66ae93..ea05c15a 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -116,7 +116,7 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r return false; } - if (frame && m_protHandler.preHandling( request, frame )) + if ( frame && m_protHandler.preHandling(request, frame) ) { return false; @@ -162,6 +162,8 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) if( offer.isNull() ) // no service can handle this. We can just download it.. { + kDebug() << "no service can handle this. We can just download it.."; + isLocal ? KMessageBox::sorry(view(), i18n("No service can handle this :(") ) : downloadRequest( reply->request() ); @@ -175,6 +177,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) switch ( dlg.askEmbedOrSave() ) { case KParts::BrowserOpenOrSaveQuestion::Save: + kDebug() << "service handling: download!"; downloadRequest( reply->request() ); return; case KParts::BrowserOpenOrSaveQuestion::Cancel: @@ -204,7 +207,7 @@ void WebPage::loadFinished(bool) } -void WebPage::manageNetworkErrors(QNetworkReply* reply) +void WebPage::manageNetworkErrors(QNetworkReply *reply) { if( reply->error() == QNetworkReply::NoError ) return; diff --git a/src/webpage.h b/src/webpage.h index 2a1cf826..c9c5bb8c 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -33,7 +33,6 @@ #define WEBPAGE_H - // Local Includes #include "protocolhandler.h" #include "newtabpage.h" -- cgit v1.2.1