summaryrefslogtreecommitdiff
path: root/src/analyzer/networkanalyzer.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-09-01 01:39:43 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-09-01 01:39:43 +0200
commitb08c67eb1e45cb94dc6250fe555d84f0c0e7debe (patch)
treecde7d4e24a8592053842beeb861b60d6180d8195 /src/analyzer/networkanalyzer.cpp
parentLet urlbar being usable also in fullscreen mode (diff)
downloadrekonq-b08c67eb1e45cb94dc6250fe555d84f0c0e7debe.tar.xz
This hacks should fix (a lot of) javascript handling.
Hope this will be properly fixed upstream in KIO... Please, Jurian & Pano. Let me know if this has been really fixed. BUG: 242886
Diffstat (limited to 'src/analyzer/networkanalyzer.cpp')
-rw-r--r--src/analyzer/networkanalyzer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/analyzer/networkanalyzer.cpp b/src/analyzer/networkanalyzer.cpp
index c5b08835..d0044f47 100644
--- a/src/analyzer/networkanalyzer.cpp
+++ b/src/analyzer/networkanalyzer.cpp
@@ -162,7 +162,8 @@ void NetworkAnalyzer::requestFinished( QObject *replyObject )
QString contentType = reply->header( QNetworkRequest::ContentTypeHeader ).toString();
item->setText( 4, contentType );
- if ( status == 302 ) {
+ if ( status == 302 )
+ {
QUrl target = reply->attribute( QNetworkRequest::RedirectionTargetAttribute ).toUrl();
item->setText( 5, i18n("Redirect: %1", target.toString() ) );
}