From 1cffe83f175cdcdf4359e5e34ddfa104901b6059 2017-08-17 08:24:20 From: Alexandre Leroux Date: 2017-08-17 08:24:20 Subject: [PATCH] Removes hack that was downloading first component of a vector when vectors were not handled --- diff --git a/plugins/amda/src/AmdaPlugin.cpp b/plugins/amda/src/AmdaPlugin.cpp index 423b6d2..8d64b92 100644 --- a/plugins/amda/src/AmdaPlugin.cpp +++ b/plugins/amda/src/AmdaPlugin.cpp @@ -32,15 +32,6 @@ void associateActions(DataSourceItem &item, const QUuid &dataSourceUid) const auto itemType = item.type(); if (itemType == DataSourceItemType::PRODUCT) { - /// @todo : As for the moment we do not manage the loading of vectors, in the case of a - /// parameter, we update the identifier of download of the data: - /// - if the parameter has no component, the identifier remains the same - /// - if the parameter has at least one component, the identifier is that of the first - /// component (for example, "imf" becomes "imf (0)") - if (item.childCount() != 0) { - item.setData(AMDA_XML_ID_KEY, item.child(0)->data(AMDA_XML_ID_KEY)); - } - addLoadAction(QObject::tr("Load %1 product").arg(item.name())); } else if (itemType == DataSourceItemType::COMPONENT) {