diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-03-19 01:16:17 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-03-19 01:16:17 +0100 |
commit | 673d10c4ab0900efe5f639930352c3df39cc17c5 (patch) | |
tree | 863043dfd3774016fbafc8ecb3f1a277550b5b3e /src | |
parent | Fixed notfound.html (diff) | |
download | rekonq-673d10c4ab0900efe5f639930352c3df39cc17c5.tar.xz |
Fixed crash when history empty.
Mr. Lancelot courtesy patch..
Diffstat (limited to 'src')
-rw-r--r-- | src/urlbar.cpp | 7 |
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); + } } |