From 2a0fea5843190d017ec5f5313495df7e31f1292d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 16 Dec 2009 01:05:14 +0100 Subject: Stupid fix. Not sure we have a Webview, yet? Don't call it! --- src/mainview.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/mainview.cpp') 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&))); } -- cgit v1.2.1