Don't involve user in implementation details.

Fixes: lp:1756299
* https://bugs.launchpad.net/kicad/+bug/1756299
This commit is contained in:
Jeff Young 2018-03-16 16:56:54 +00:00
parent 1537cbc59c
commit b335ef0531
1 changed files with 0 additions and 26 deletions

View File

@ -649,32 +649,6 @@ bool S3D_FILENAME_RESOLVER::writePathList( void )
wxString cfgname = cfgpath.GetFullPath();
std::ofstream cfgFile;
if( sPL == ePL )
{
wxMessageDialog md( NULL,
_( "3D search path list is empty;\ncontinue to write empty file?" ),
_( "Write 3D search path list" ), wxYES_NO );
if( md.ShowModal() == wxID_YES )
{
cfgFile.open( cfgname.ToUTF8(), std::ios_base::trunc );
if( !cfgFile.is_open() )
{
wxMessageBox( _( "Could not open configuration file" ),
_( "Write 3D search path list" ) );
return false;
}
cfgFile << "#V" << CFGFILE_VERSION << "\n";
cfgFile.close();
return true;
}
return false;
}
cfgFile.open( cfgname.ToUTF8(), std::ios_base::trunc );
if( !cfgFile.is_open() )