Small fix again.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Thu, 9 Sep 2010 05:28:00 +0000 (08:28 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Thu, 9 Sep 2010 05:28:00 +0000 (08:28 +0300)
src/ui/locationsearchpanel.cpp

index 8b7b4d0..e9fb481 100644 (file)
@@ -128,9 +128,9 @@ LocationSearchPanel::LocationSearchPanel(QWidget *parent)
     m_genericButtonsLayout->addWidget(searchLocationButton);
     m_genericButtonsLayout->addWidget(m_clearLocationListButton);
 
     m_genericButtonsLayout->addWidget(searchLocationButton);
     m_genericButtonsLayout->addWidget(m_clearLocationListButton);
 
-    readSettings();
     showSearchHistoryListView();
     showEmptyPanel(true);
     showSearchHistoryListView();
     showEmptyPanel(true);
+    readSettings();
 }
 
 LocationSearchPanel::~LocationSearchPanel()
 }
 
 LocationSearchPanel::~LocationSearchPanel()
@@ -163,6 +163,7 @@ void LocationSearchPanel::prependSearchHistory(QString searchString, QDateTime d
     static int counter = 0;
 
     showSearchHistoryListView();
     static int counter = 0;
 
     showSearchHistoryListView();
+    showEmptyPanel(false);
 
     if (m_searchHistoryListView->count() >= SEARCH_HISTORY_LIMIT)
         m_searchHistoryListView->removeLastItem();
 
     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();
     m_resultsLabel->setText(tr("Search history:"));
     m_clearLocationListButton->setDisabled(true);
     m_searchHistoryListView->show();
-    showEmptyPanel(false);
 }
 }