summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-19 01:16:17 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-19 01:16:17 +0100
commit673d10c4ab0900efe5f639930352c3df39cc17c5 (patch)
tree863043dfd3774016fbafc8ecb3f1a277550b5b3e /src
parentFixed notfound.html (diff)
downloadrekonq-673d10c4ab0900efe5f639930352c3df39cc17c5.tar.xz
Fixed crash when history empty.
Mr. Lancelot courtesy patch..
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);
+ }
}