From 673d10c4ab0900efe5f639930352c3df39cc17c5 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 19 Mar 2009 01:16:17 +0100 Subject: Fixed crash when history empty. Mr. Lancelot courtesy patch.. --- src/urlbar.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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); + } } -- cgit v1.2.1