summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/urlbar.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/urlbar.cpp b/src/urlbar.cpp
index 75f436be..d5113649 100644
--- a/src/urlbar.cpp
+++ b/src/urlbar.cpp
@@ -92,8 +92,11 @@ void UrlBar::webViewIconChanged()
QIcon urlIcon = QIcon(pixmap);
// FIXME simple hack to show Icon in the urlbar, as calling changeUrl() doesn't affect it
- removeItem( 0 );
- insertUrl( 0 , urlIcon , url );
+ insertUrl(0,urlIcon,url);
+ if(count()>1)
+ {
+ removeItem(1);
+ }
}