Opened 7 years ago
Closed 7 years ago
#4594 closed defect (fixed)
When duplicating a model saved in a single file, the duplicate model should also be saved in a single file
Reported by: | Francesco Casella | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | critical | Milestone: | 1.13.0 |
Component: | OMEdit | Version: | |
Keywords: | Cc: | buchner@… |
Description
Open the attached package P in OMEdit. Expand packages P and Q in the libraries browser. Right-click M1, select duplicate and create M2. Select M2 and save it.
- no M2.mo file is created in the P/Q/ directory
- M2.mo is instead added inside package.mo
I think it would make more sense to replicate the behaviour of the "New Modelica Class" command, i.e., create a file P/Q/M2.mo
Attachments (1)
Change History (5)
by , 7 years ago
follow-up: 2 comment:1 by , 7 years ago
comment:2 by , 7 years ago
Replying to adeas31:
Indeed. There are also other related problems. Today I duplicated a model oldname to newname, then did some other stuff and I ended up with oldname inside newname.mo and newname inside package.mo. A real mess. I cannot reproduce this specific behaviour, but I think that if you fix the other problems this kind of things won't happen anymore.
Please fix these issues with high priority because it really makes the tool unusable for serious use.
comment:3 by , 7 years ago
Cc: | added |
---|
Looks similar to #4128, #4350 and #4557.