mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Make sure there is a filename before creating a parameter for it.
Fixes https://gitlab.com/kicad/code/kicad/issues/9263
This commit is contained in:
parent
7089a837f6
commit
3413358992
@ -139,10 +139,12 @@ int ExecuteFile( const wxString& aEditorName, const wxString& aFileName, wxProce
|
||||
if( !param.IsEmpty() )
|
||||
args[i++] = param.wc_str();
|
||||
|
||||
args[i++] = aFileName.wc_str();
|
||||
if( !aFileName.IsEmpty() )
|
||||
args[i++] = aFileName.wc_str();
|
||||
|
||||
args[i] = nullptr;
|
||||
|
||||
return wxExecute( const_cast<wchar_t**>( args ), wxEXEC_ASYNC, aCallback );
|
||||
return wxExecute( const_cast< wchar_t**>( args ), wxEXEC_ASYNC, aCallback );
|
||||
}
|
||||
|
||||
wxString msg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user