summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-12-17 14:51:36 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-12-17 14:51:36 +0100
commitc43ddc437957ac6e82407b364a829faf4032d35b (patch)
tree450cabde5548024b275e304dca8c4c7e3871c68d
parentrekonq 0.3.24 (diff)
downloadrekonq-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.cpp10
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)
{