diff --git a/core/include/Variable/VariableController.h b/core/include/Variable/VariableController.h index a821b05..b7458cc 100644 --- a/core/include/Variable/VariableController.h +++ b/core/include/Variable/VariableController.h @@ -33,6 +33,8 @@ public: /** * Deletes from the controller the variable passed in parameter. * + * Delete a variable includes: + * - the deletion of the provider associated with the variable * * @param variable the variable to delete from the controller. */ diff --git a/core/src/Variable/VariableController.cpp b/core/src/Variable/VariableController.cpp index 4c6b3dc..5e0145d 100644 --- a/core/src/Variable/VariableController.cpp +++ b/core/src/Variable/VariableController.cpp @@ -89,7 +89,12 @@ void VariableController::deleteVariable(std::shared_ptr variable) noex return; } - /// @todo ALX + + // Deletes provider + auto nbProvidersDeleted = impl->m_VariableToProviderMap.erase(variable); + qCDebug(LOG_VariableController()) + << tr("Number of providers deleted for variable %1: %2") + .arg(variable->name(), QString::number(nbProvidersDeleted)); void VariableController::deleteVariables(