summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 4ccbe937..beaf4e21 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -562,10 +562,13 @@ void MainView::webViewLoadFinished(bool ok)
void MainView::webViewIconChanged()
{
WebView *view = qobject_cast<WebView *>(sender());
- int index = indexOf(view->parentWidget());
+ WebTab *tab = qobject_cast<WebTab *>(view->parent());
+ int index = indexOf(tab);
+
if (-1 != index)
{
- KIcon icon = Application::iconManager()->iconForUrl(view->url());
+ kDebug() << "TAB URL: " << tab->url();
+ KIcon icon = Application::iconManager()->iconForUrl(tab->url());
QLabel *label = animatedLoading(index, false);
QMovie *movie = label->movie();
delete movie;