@@ -26,6 +26,8 public: | |||
|
26 | 26 | virtual ~VisualizationController(); |
|
27 | 27 | |
|
28 | 28 | signals: |
|
29 | /// Signal emitted when a variable is about to be deleted from SciQlop | |
|
30 | void variableAboutToBeDeleted(std::shared_ptr<Variable> variable); | |
|
29 | 31 | /// Signal emitted when a variable has been created in SciQlop |
|
30 | 32 | void variableCreated(std::shared_ptr<Variable> variable); |
|
31 | 33 |
@@ -89,6 +89,9 void VariableController::deleteVariable(std::shared_ptr<Variable> variable) noex | |||
|
89 | 89 | return; |
|
90 | 90 | } |
|
91 | 91 | |
|
92 | // Spreads in SciQlop that the variable will be deleted, so that potential receivers can | |
|
93 | // make some treatments before the deletion | |
|
94 | emit variableAboutToBeDeleted(variable); | |
|
92 | 95 | |
|
93 | 96 | // Deletes provider |
|
94 | 97 | auto nbProvidersDeleted = impl->m_VariableToProviderMap.erase(variable); |
General Comments 0
You need to be logged in to leave comments.
Login now