summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-14 12:23:53 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-14 12:23:53 +0100
commit06eeee98a92cc01b0b193c94c3d7c357a58f9332 (patch)
treeaf6e9df8db19f8a4f57c5289538cf205f48bd7e4 /src
parentthis fix urlbar behaviour, removing focus from there and enabling (diff)
downloadrekonq-06eeee98a92cc01b0b193c94c3d7c357a58f9332.tar.xz
Some stupid changes && kDebug sentences added to better debug download system
Diffstat (limited to 'src')
-rw-r--r--src/webpage.cpp7
-rw-r--r--src/webpage.h1
2 files changed, 5 insertions, 3 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;
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"