From c43ddc437957ac6e82407b364a829faf4032d35b Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 17 Dec 2009 14:51:36 +0100 Subject: not sure about this.. It seems these lines let sometime crash rekonq. Anyway, it never happens here. I basically changed a cast from KWebView to WebView. --- src/mainview.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mainview.cpp b/src/mainview.cpp index 413d1b45..8e0a6eb4 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -497,7 +497,7 @@ void MainView::closeTab(int index) void MainView::webViewLoadStarted() { - KWebView *webView = qobject_cast(sender()); + WebView *webView = qobject_cast(sender()); int index = indexOf(webView->parentWidget()); if (-1 != index) { @@ -519,7 +519,7 @@ void MainView::webViewLoadStarted() void MainView::webViewLoadFinished(bool ok) { - KWebView *webView = qobject_cast(sender()); + WebView *webView = qobject_cast(sender()); int index = indexOf(webView->parentWidget()); if (-1 != index) @@ -548,7 +548,7 @@ void MainView::webViewLoadFinished(bool ok) void MainView::webViewIconChanged() { - KWebView *webView = qobject_cast(sender()); + WebView *webView = qobject_cast(sender()); int index = indexOf(webView->parentWidget()); if (-1 != index) { @@ -571,7 +571,7 @@ void MainView::webViewTitleChanged(const QString &title) { tabTitle = i18n("(Untitled)"); } - KWebView *webView = qobject_cast(sender()); + WebView *webView = qobject_cast(sender()); int index = indexOf(webView->parentWidget()); if (-1 != index) { @@ -587,7 +587,7 @@ void MainView::webViewTitleChanged(const QString &title) void MainView::webViewUrlChanged(const QUrl &url) { - KWebView *webView = qobject_cast(sender()); + WebView *webView = qobject_cast(sender()); int index = indexOf(webView->parentWidget()); if (-1 != index) { -- cgit v1.2.1