From 8a8df6337a79e396e22c14dff74d9cd16628f335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 14 Apr 2014 00:23:22 +0200 Subject: [PATCH] openweathermap search works now --- .../openweathermap/devicepluginopenweathermap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp b/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp index ca84c801..089c6b8e 100644 --- a/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp +++ b/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp @@ -324,7 +324,7 @@ void DevicePluginOpenweathermap::searchResultsReady(const QList &ci { QList retList; foreach (QVariantMap elemant, cityList) { - DeviceDescriptor descriptor(deviceClassId,"city","searchresult"); + DeviceDescriptor descriptor(deviceClassId, elemant.value("name").toString(),elemant.value("country").toString()); QVariantMap params; params.insert("location", elemant.value("name")); params.insert("country", elemant.value("country")); @@ -332,7 +332,6 @@ void DevicePluginOpenweathermap::searchResultsReady(const QList &ci descriptor.setParams(params); retList.append(descriptor); } - emit devicesDiscovered(deviceClassId,retList); }