﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4799	Duplicate of packages is not working if not saved in one file	Christian Kral <dr.christian.kral@…>	Adeel Asghar	"Please consider the following example. In OMEdit make a right click on Modelica.UsersGuide and pick Duplicate. 

Name: UsersGuide
Path: (blank)
Uncheck: ""Save contents in one file"" in order to save folders and files.

Make a double click on the duplicate UsersGuide. When hitting CTRL+S to store the duplicated UsersGuide, nothing happens. One can even not select save from the File menu. By applying a right click on the duplicate UsersGuide, you can select save and that then saves UsersGuide. Select a directory to store the files...

After saving the UsersGuide, have a look at the stored code:
 * In package.mo all underlying classes are stored (which was not intended by unchecking ""Save contents in one file"")
 * In addition, folders and files have been created, mapping the structure of UsersGuide 

**Note:** If the same procedure is performed when keeping ""Save contents in one file"" checked, the file seems to be stored correctly, but the following behavior remains...

Some more strange effects (which may be related to the fact that Modelica is a read only System Library and the duplicate may be assumed the be read only as well):
 * Switch to Modeling with the intention to see Modelica code -- but there is no Text View to see the code of the duplicate UsersGuide...
 * Make a right click on the duplicate UsersGuide and pick ""View Text"". Then the Text View of UsersGuide appears. 
 * Now try to edit code line in the Text View of UsersGuide. You get then the message: {{{Warning: You are changing a read-only class.}}}"	defect	closed	high	1.14.0	OMEdit	v1.13.0-dev-nightly	fixed		Per Östlund
