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); }