﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4876	"Weird behavior of ""Save as"" in OMEdit"	Christian Kral <dr.christian.kral@…>	Adeel Asghar	"Consider any Modelica class, e.g., 

{{{
model Test
  constant Real one=1;
equation
end Test;
}}}

In OMEdit hit CTRL+S to save the file. The select File -> Save AS. A window appears which allows the input of two fields:

{{{
Name: 
Path: 
}}}

There are two aspects I want to point out here:

=== 1. PATH ===

Why is Path used here at all? When it comes to save a class or package **as** something, I would not expect to pick a different Modelica path. 

If I pick the case of

{{{
Name: Test 
Path: Test
}}}

then a duplicate of Test is created within model Test which seems not be legal Modelica code. This behavior reminds me of #4875, however.

=== 2. DIFFERENT NAME ===

If I pick  

{{{
Name: Test2 
Path: 
}}}

instead, a duplicate of Test is created as Test2 and a dialog appears as expected to pick a new location to store the class or package. The class is then renamed and stored under the new name. So the input of a path is not required here.

"	defect	closed	high		OMEdit	v1.13.0-dev-nightly	fixed		
