Fixed again a bug when "No search results" text was incorrectly shown.
[situare] / 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();