Created new ui for the program. Almost everything that worked previously
[ptas] / zouba / src / addressdialog.cpp
index eba193d..662ec99 100644 (file)
@@ -1,7 +1,7 @@
 #include "addressdialog.h"\r
-#include "location.h"\r
-#include "ytv.h"\r
-#include "locations.h"\r
+#include "logic/location.h"\r
+#include "logic/ytv.h"\r
+#include "logic/locations.h"\r
 \r
 #include <QWidget>\r
 #include <QDialog>\r
@@ -68,7 +68,7 @@ void AddressDialog::searchFinished()
     QXmlStreamReader xml(this->m_reply->readAll());\r
     //Remove the reply. Hopefully also removes the connection.\r
     //delete this->m_reply;\r
-    this->m_reply = 0;\r
+    this->m_reply->deleteLater();\r
     \r
     bool responseHasError = false;\r
     this->m_places = QList<Location*>();\r
@@ -271,7 +271,7 @@ Location* foundFromList(const QString address, const QList<Location*>& list)
         if (address == (*it)->label())\r
         {\r
             qDebug() << "Found item from list: " << *it;\r
-            ret = new Location(*it);\r
+            ret = new Location(**it);\r
             qDebug() << "After assignment: " << ret;\r
         }\r
     }\r