diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-14 12:23:53 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-14 12:23:53 +0100 |
commit | 06eeee98a92cc01b0b193c94c3d7c357a58f9332 (patch) | |
tree | af6e9df8db19f8a4f57c5289538cf205f48bd7e4 /src/webpage.cpp | |
parent | this fix urlbar behaviour, removing focus from there and enabling (diff) | |
download | rekonq-06eeee98a92cc01b0b193c94c3d7c357a58f9332.tar.xz |
Some stupid changes && kDebug sentences added to better debug download system
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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; |