Fixed again a bug when "No search results" text was incorrectly shown.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Wed, 8 Sep 2010 05:08:18 +0000 (08:08 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Wed, 8 Sep 2010 05:08:18 +0000 (08:08 +0300)
src/ui/locationsearchpanel.cpp

index 2afe5a9..87bcf82 100644 (file)
@@ -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();