Fixed search history settings read and write and added search history
[situare] / src / ui / mainwindow.cpp
index 4ba4c65..23f452b 100644 (file)
@@ -271,7 +271,10 @@ void MainWindow::buildLocationSearchPanel()
             this, SLOT(startLocationSearch()));
 
     connect(this, SIGNAL(searchForLocation(QString)),
-            m_locationSearchPanel, SLOT(appendSearchHistory(QString)));
+            m_locationSearchPanel, SLOT(prependSearchHistory(QString)));
+
+    connect(m_locationSearchPanel, SIGNAL(searchHistoryItemClicked(QString)),
+            this, SIGNAL(searchHistoryItemClicked(QString)));
 }
 
 void MainWindow::buildMap()