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:
jean-pierre charras 2023-02-26 08:29:22 +01:00
parent f927c15adf
commit 5a501c8e48
1 changed files with 1 additions and 2 deletions

View File

@ -710,8 +710,7 @@ void KICAD_MANAGER_FRAME::OnOpenFileInTextEditor( wxCommandEvent& event )
if( dlg.ShowModal() == wxID_CANCEL )
return;
wxString filename = wxT( "\"" );
filename += dlg.GetPath() + wxT( "\"" );
wxString filename = dlg.GetPath();
if( !dlg.GetPath().IsEmpty() && !Pgm().GetTextEditor().IsEmpty() )
m_toolManager->RunAction( KICAD_MANAGER_ACTIONS::openTextEditor, true, &filename );