﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5355	OMEdit does not rename file when model is renamed	Andrea Bartolini	Adeel Asghar	"If you create a package with the option to save models in single files and then you rename a model the name inside the model file is updated but not the file name.

The expected behavior is that also the file is renamed and a copy of the original file file is kept on disk, renamed as .bak

In order to reproduce the problem you can open the attached zip, extract the model and execute the following steps:
- open {{{Test}}} package in OMEdit
- open {{{M1}}} model inside the package
- from the text view, rename the model as you want (e.g. M11)
- save the model, the text inside the file M1.mo is updated but the name of the file M1.mo doesen't change
- open the {{{P1}}} package inside the {{{Test}}} package
- redo the same for the model {{{M2}}}, the same problem will happen
- if now you unload and reload the {{{Test}}} package, you get an error (as expected)

OMEdit 1.14.0~dev-45-g9f3d0f7
Connected to OpenModelica 1.14.0~dev-285-g270177b
Connected to OMSimulator unknown-linux

Sysop: Linux Ubuntu 16.04"	defect	new	blocker	1.14.0	OMEdit	v1.14.0-dev-nightly			casella@…
