From: Jussi Laitinen Date: Wed, 8 Sep 2010 05:08:18 +0000 (+0300) Subject: Fixed again a bug when "No search results" text was incorrectly shown. X-Git-Tag: v2.0b-1~7 X-Git-Url: http://vcs.maemo.org/git/?p=situare;a=commitdiff_plain;h=4ae1a8899d4781c0c9b29eae9349b8436182aa68 Fixed again a bug when "No search results" text was incorrectly shown. --- 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();