made GetAssociatedDocument() compatible with last changes in kicad path handling.
This commit is contained in:
+1
-10
@@ -259,15 +259,6 @@ void WinEDA_BasicFrame::GetKicadHelp( wxCommandEvent& event )
|
||||
}
|
||||
|
||||
#elif defined ONLINE_HELP_FILES_FORMAT_IS_PDF
|
||||
// wxString fullfilename = FindKicadHelpPath() + wxGetApp().m_HelpFileName;
|
||||
// if ( wxFileExists(fullfilename) )
|
||||
// GetAssociatedDocument( this, wxEmptyString, fullfilename );
|
||||
// else // Try to find file in English format:
|
||||
// {
|
||||
// fullfilename = FindKicadHelpPath() + wxT("../en/") + wxGetApp().m_HelpFileName;;
|
||||
// GetAssociatedDocument( this, wxEmptyString, fullfilename );
|
||||
// }
|
||||
|
||||
wxString helpFile = wxGetApp().GetHelpFile();
|
||||
if( !helpFile )
|
||||
{
|
||||
@@ -276,7 +267,7 @@ void WinEDA_BasicFrame::GetKicadHelp( wxCommandEvent& event )
|
||||
DisplayError( this, msg );
|
||||
}
|
||||
else
|
||||
GetAssociatedDocument( this, wxEmptyString, helpFile );
|
||||
GetAssociatedDocument( this, helpFile );
|
||||
|
||||
#else
|
||||
# error Help files format not defined
|
||||
|
||||
Reference in New Issue
Block a user