##// END OF EJS Templates
Variable deletion (2)...
Alexandre Leroux -
r330:418ee7805248
parent child
Show More
@@ -33,6 +33,8 public:
33 /**
33 /**
34 * Deletes from the controller the variable passed in parameter.
34 * Deletes from the controller the variable passed in parameter.
35 *
35 *
36 * Delete a variable includes:
37 * - the deletion of the provider associated with the variable
36 *
38 *
37 * @param variable the variable to delete from the controller.
39 * @param variable the variable to delete from the controller.
38 */
40 */
@@ -89,7 +89,12 void VariableController::deleteVariable(std::shared_ptr<Variable> variable) noex
89 return;
89 return;
90 }
90 }
91
91
92 /// @todo ALX
92
93 // Deletes provider
94 auto nbProvidersDeleted = impl->m_VariableToProviderMap.erase(variable);
95 qCDebug(LOG_VariableController())
96 << tr("Number of providers deleted for variable %1: %2")
97 .arg(variable->name(), QString::number(nbProvidersDeleted));
93
98
94
99
95 void VariableController::deleteVariables(
100 void VariableController::deleteVariables(
General Comments 0
You need to be logged in to leave comments. Login now