Modified search interesting people by tag to use maximum distance
[situare] / src / ui / mainwindow.cpp
index f0f9c78..71ad6bc 100644 (file)
@@ -560,6 +560,9 @@ void MainWindow::buildUserInfoPanel()
 
     connect(m_userInfoPanel, SIGNAL(requestPopularTags()),
             this, SIGNAL(requestPopularTags()));
+
+    connect(this, SIGNAL(userTagsReceived(QHash<QString,QString>&)),
+            m_userInfoPanel, SLOT(userTagsReceived(QHash<QString,QString>&)));
 }
 
 void MainWindow::buildZoomButtonPanel()
@@ -643,13 +646,14 @@ void MainWindow::dialogFinished(int status)
             emit searchForLocation(searchDialog->input());
         else if (searchDialog->type() == SearchDialog::PeopleTag)
             emit requestSearchPeopleByTag(searchDialog->input());
+
+        searchDialog->deleteLater();
     } else if ((messageDialog) && (status != 0)) {
         emit sendMessage(messageDialog->input().first, messageDialog->input().second,
                          messageDialog->isAddCoordinatesSelected());
+        messageDialog->deleteLater();
     }
 
-    dialog->deleteLater();
-
     if(!m_error_queue.isEmpty() && m_errorShown == false) {
         showErrorInformationBox();
     } else {