From d6c67b1eb2561eadbae60738cd0a35edf14b2cc8 Mon Sep 17 00:00:00 2001 From: Jussi Laitinen Date: Thu, 9 Sep 2010 08:28:00 +0300 Subject: [PATCH] Small fix again. --- src/ui/locationsearchpanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/locationsearchpanel.cpp b/src/ui/locationsearchpanel.cpp index 8b7b4d0..e9fb481 100644 --- a/src/ui/locationsearchpanel.cpp +++ b/src/ui/locationsearchpanel.cpp @@ -128,9 +128,9 @@ LocationSearchPanel::LocationSearchPanel(QWidget *parent) m_genericButtonsLayout->addWidget(searchLocationButton); m_genericButtonsLayout->addWidget(m_clearLocationListButton); - readSettings(); showSearchHistoryListView(); showEmptyPanel(true); + readSettings(); } LocationSearchPanel::~LocationSearchPanel() @@ -163,6 +163,7 @@ void LocationSearchPanel::prependSearchHistory(QString searchString, QDateTime d static int counter = 0; showSearchHistoryListView(); + showEmptyPanel(false); if (m_searchHistoryListView->count() >= SEARCH_HISTORY_LIMIT) m_searchHistoryListView->removeLastItem(); @@ -274,5 +275,4 @@ void LocationSearchPanel::showSearchHistoryListView() m_resultsLabel->setText(tr("Search history:")); m_clearLocationListButton->setDisabled(true); m_searchHistoryListView->show(); - showEmptyPanel(false); } -- 1.7.9.5