From 60693ccb6951c56cc01ca173b09613af37344d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 14 Apr 2014 00:11:57 +0200 Subject: [PATCH] bugfix --- .../openweathermap/devicepluginopenweathermap.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }