summaryrefslogtreecommitdiff
path: root/src/analyzer/analyzerpanel.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-06-17 00:50:23 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-06-17 00:50:23 +0200
commitb4cb6ffccb359682781df7d40df584adcf0329fe (patch)
tree80ea7229eba82a92ba9c52a7e86093622259e47c /src/analyzer/analyzerpanel.cpp
parentSaving preview on ok loadFinished.. (diff)
downloadrekonq-b4cb6ffccb359682781df7d40df584adcf0329fe.tar.xz
Fix Network Analyzer Panel switch..
Diffstat (limited to 'src/analyzer/analyzerpanel.cpp')
-rw-r--r--src/analyzer/analyzerpanel.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/analyzer/analyzerpanel.cpp b/src/analyzer/analyzerpanel.cpp
index 9198cade..311f460f 100644
--- a/src/analyzer/analyzerpanel.cpp
+++ b/src/analyzer/analyzerpanel.cpp
@@ -63,7 +63,7 @@ void NetworkAnalyzerPanel::closeEvent(QCloseEvent *event)
MainWindow* NetworkAnalyzerPanel::mainWindow()
{
- return qobject_cast< MainWindow* >(parentWidget());
+ return qobject_cast<MainWindow *>(parentWidget());
}
@@ -73,9 +73,11 @@ void NetworkAnalyzerPanel::toggle(bool enable)
WebPage *page = mainWindow()->currentTab()->page();
NetworkAccessManager *manager = qobject_cast<NetworkAccessManager *>(page->networkAccessManager());
+ page->enableNetworkAnalyzer(enable);
+
if (enable)
{
- connect(page, SIGNAL(loadStarted()), _viewer, SLOT(clear()));
+ connect(page, SIGNAL(loadStarted()), _viewer, SLOT(clear()));
connect(manager, SIGNAL(networkData(QNetworkAccessManager::Operation, const QNetworkRequest &, QNetworkReply *)),
_viewer, SLOT(addRequest(QNetworkAccessManager::Operation, const QNetworkRequest &, QNetworkReply *) ) );