The "Rename model" feature presents an inappropriate behavior when the file being rename is different from the model opened in the editor.
OS: Windows 7
Version: DengueME v0.7.0* (built from the source-code avaiable on dev branch)
FLOW 1. How to reproduce:
Create two diferent models of the same type (e.g. SIR)
Open a model to be rename in a future step, and change the value of its default parameters. Save and close it.
Open a different model to be edited (see the path)
Using Project Explorer, select a different model inside the same project to be renamed, and change its name
After renaming, it seems that the model which was renamed, was loaded in the editor (see the path) - but this was not requested by user.
FLOW 2. How to reproduce:
Create a model (e.g. SIR) and close it.
Create a new model inside the same project - it will be automatically opened.
Rename the first model
After renaming, it seems that the model which was renamed, was loaded in the editor (see the path) - but this was not requested by user.
In fact, the model was not really opened since its parameters were not loaded. What is happening is a really strange and undesirable behavior - the rename operation takes the model which is opened with its values (e.g. sir), change its name to the new name (e.g. sir2), and if user save the model, the values of the first model (e.g. sir) will replace the values of the second one (e.g. sir2).
The "Rename model" feature presents an inappropriate behavior when the file being rename is different from the model opened in the editor.
OS: Windows 7 Version: DengueME v0.7.0* (built from the source-code avaiable on dev branch)
FLOW 1. How to reproduce:
FLOW 2. How to reproduce:
In fact, the model was not really opened since its parameters were not loaded. What is happening is a really strange and undesirable behavior - the rename operation takes the model which is opened with its values (e.g. sir), change its name to the new name (e.g. sir2), and if user save the model, the values of the first model (e.g. sir) will replace the values of the second one (e.g. sir2).