Browse Source

kicad manager, OnOpenFileInTextEditor(): do not quote the filename.

It will be quoted later.
Fixes #14086
https://gitlab.com/kicad/code/kicad/issues/14086
newinvert
jean-pierre charras 3 years ago
parent
commit
72cc2766ed
  1. 3
      kicad/kicad_manager_frame.cpp

3
kicad/kicad_manager_frame.cpp

@ -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 );

Loading…
Cancel
Save