Remove assertion path on closing empty pcb
We don't need to save the project settings if we don't open a file or project
This commit is contained in:
parent
b7cd0c54c2
commit
011e4116d6
|
@ -96,6 +96,12 @@ void PCB_EDIT_FRAME::SaveProjectSettings()
|
||||||
{
|
{
|
||||||
wxFileName fn = Prj().GetProjectFullName();
|
wxFileName fn = Prj().GetProjectFullName();
|
||||||
|
|
||||||
|
// Check for the filename before checking IsWritable as this
|
||||||
|
// will throw errors on bad names. Here, we just want to not
|
||||||
|
// save the Settings if we don't have a name
|
||||||
|
if( !fn.IsOk() )
|
||||||
|
return;
|
||||||
|
|
||||||
if( !IsWritable( fn ) )
|
if( !IsWritable( fn ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue