From 4ae1a8899d4781c0c9b29eae9349b8436182aa68 Mon Sep 17 00:00:00 2001 From: Jussi Laitinen Date: Wed, 8 Sep 2010 08:08:18 +0300 Subject: [PATCH] Fixed again a bug when "No search results" text was incorrectly shown. --- src/ui/locationsearchpanel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/locationsearchpanel.cpp b/src/ui/locationsearchpanel.cpp index 2afe5a9..87bcf82 100644 --- a/src/ui/locationsearchpanel.cpp +++ b/src/ui/locationsearchpanel.cpp @@ -130,6 +130,7 @@ LocationSearchPanel::LocationSearchPanel(QWidget *parent) readSettings(); showSearchHistoryListView(); + showEmptyPanel(true); } LocationSearchPanel::~LocationSearchPanel() @@ -161,6 +162,8 @@ void LocationSearchPanel::prependSearchHistory(QString searchString, QDateTime d const int SEARCH_HISTORY_LIMIT = 10; static int counter = 0; + showSearchHistoryListView(); + if (m_searchHistoryListView->count() >= SEARCH_HISTORY_LIMIT) m_searchHistoryListView->removeLastItem(); -- 1.7.9.5