summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-12-16 01:05:14 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-12-16 01:05:14 +0100
commit2a0fea5843190d017ec5f5313495df7e31f1292d (patch)
tree1b5c72151b7d10267cdaf1637be8112bc3baa833 /src
parentWe have file management :D (diff)
downloadrekonq-2a0fea5843190d017ec5f5313495df7e31f1292d.tar.xz
Stupid fix.
Not sure we have a Webview, yet? Don't call it!
Diffstat (limited to 'src')
-rw-r--r--src/mainview.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 713c171b..0eb292ef 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -259,22 +259,22 @@ void MainView::currentChanged(int index)
return;
// retrieve the old webview (that where we move from)
- WebView *oldWebView = this->webTab(m_currentTabIndex)->view();
+ WebTab *oldWebTab = this->webTab(m_currentTabIndex);
// set current index
m_currentTabIndex = index;
- if (oldWebView)
+ if (oldWebTab)
{
// disconnecting webview from urlbar
- disconnect(oldWebView, SIGNAL(loadProgress(int)), urlBar(), SLOT(updateProgress(int)));
- disconnect(oldWebView, SIGNAL(loadFinished(bool)), urlBar(), SLOT(loadFinished(bool)));
- disconnect(oldWebView, SIGNAL(urlChanged(const QUrl &)), urlBar(), SLOT(setUrl(const QUrl &)));
+ disconnect(oldWebTab->view(), SIGNAL(loadProgress(int)), urlBar(), SLOT(updateProgress(int)));
+ disconnect(oldWebTab->view(), SIGNAL(loadFinished(bool)), urlBar(), SLOT(loadFinished(bool)));
+ disconnect(oldWebTab->view(), SIGNAL(urlChanged(const QUrl &)), urlBar(), SLOT(setUrl(const QUrl &)));
// disconnecting webpage from mainview
- disconnect(oldWebView->page(), SIGNAL(statusBarMessage(const QString&)),
+ disconnect(oldWebTab->page(), SIGNAL(statusBarMessage(const QString&)),
this, SIGNAL(showStatusBarMessage(const QString&)));
- disconnect(oldWebView->page(), SIGNAL(linkHovered(const QString&, const QString&, const QString&)),
+ disconnect(oldWebTab->page(), SIGNAL(linkHovered(const QString&, const QString&, const QString&)),
this, SIGNAL(linkHovered(const QString&)));
}