diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-12-17 14:51:36 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-12-17 14:51:36 +0100 |
commit | c43ddc437957ac6e82407b364a829faf4032d35b (patch) | |
tree | 450cabde5548024b275e304dca8c4c7e3871c68d | |
parent | rekonq 0.3.24 (diff) | |
download | rekonq-c43ddc437957ac6e82407b364a829faf4032d35b.tar.xz |
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.
-rw-r--r-- | src/mainview.cpp | 10 |
1 files 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<KWebView*>(sender()); + WebView *webView = qobject_cast<WebView *>(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<KWebView*>(sender()); + WebView *webView = qobject_cast<WebView *>(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<KWebView*>(sender()); + WebView *webView = qobject_cast<WebView *>(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<KWebView*>(sender()); + WebView *webView = qobject_cast<WebView *>(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<KWebView*>(sender()); + WebView *webView = qobject_cast<WebView *>(sender()); int index = indexOf(webView->parentWidget()); if (-1 != index) { |