diff --git a/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp b/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp index 3736630d..ca84c801 100644 --- a/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp +++ b/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp @@ -324,14 +324,16 @@ void DevicePluginOpenweathermap::searchResultsReady(const QList &ci { QList retList; foreach (QVariantMap elemant, cityList) { + DeviceDescriptor descriptor(deviceClassId,"city","searchresult"); QVariantMap params; params.insert("location", elemant.value("name")); params.insert("country", elemant.value("country")); params.insert("id", elemant.value("id")); - retList.append(DeviceDescriptor(deviceClassId, params)); + descriptor.setParams(params); + retList.append(descriptor); } - emit discoverDevices(deviceClassId,retList); + emit devicesDiscovered(deviceClassId,retList); }