kicad manager, OnOpenFileInTextEditor(): do not quote the filename.
It will be quoted later. Fixes #14086 https://gitlab.com/kicad/code/kicad/issues/14086
This commit is contained in:
parent
c06cea2fe9
commit
72cc2766ed
|
@ -710,8 +710,7 @@ void KICAD_MANAGER_FRAME::OnOpenFileInTextEditor( wxCommandEvent& event )
|
||||||
if( dlg.ShowModal() == wxID_CANCEL )
|
if( dlg.ShowModal() == wxID_CANCEL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wxString filename = wxT( "\"" );
|
wxString filename = dlg.GetPath();
|
||||||
filename += dlg.GetPath() + wxT( "\"" );
|
|
||||||
|
|
||||||
if( !dlg.GetPath().IsEmpty() && !Pgm().GetTextEditor().IsEmpty() )
|
if( !dlg.GetPath().IsEmpty() && !Pgm().GetTextEditor().IsEmpty() )
|
||||||
m_toolManager->RunAction( KICAD_MANAGER_ACTIONS::openTextEditor, true, &filename );
|
m_toolManager->RunAction( KICAD_MANAGER_ACTIONS::openTextEditor, true, &filename );
|
||||||
|
|
Loading…
Reference in New Issue