Give blank schematics an output name
Plotting a blank schematic should have a placeholder name until the user saves the file Fixes https://gitlab.com/kicad/code/kicad/issues/6561
This commit is contained in:
parent
e55061b043
commit
b08555b924
|
@ -364,8 +364,12 @@ wxFileName DIALOG_PLOT_SCHEMATIC::createPlotFileName( const wxString& aPlotFileN
|
|||
{
|
||||
wxString path = ExpandEnvVarSubstitutions( m_outputDirectoryName->GetValue(), &Prj() );
|
||||
wxFileName outputDir = wxFileName::DirName( path );
|
||||
wxString plotFileName;
|
||||
|
||||
wxString plotFileName = Prj().AbsolutePath( aPlotFileName + wxT( "." ) + aExtension);
|
||||
if( !aPlotFileName.IsEmpty() )
|
||||
plotFileName = Prj().AbsolutePath( aPlotFileName + wxT( "." ) + aExtension );
|
||||
else
|
||||
plotFileName = Prj().AbsolutePath( _( "Schematic" ) + wxT( "." ) + aExtension );
|
||||
|
||||
if( !EnsureFileDirectoryExists( &outputDir, plotFileName, aReporter ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue