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:
Seth Hillbrand 2020-03-04 11:40:28 -06:00
parent b7cd0c54c2
commit 011e4116d6
1 changed files with 6 additions and 0 deletions

View File

@ -96,6 +96,12 @@ void PCB_EDIT_FRAME::SaveProjectSettings()
{
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 ) )
return;