Look for libraries in the project path
This commit is contained in:
parent
0cb1e80e00
commit
6bfdfd5226
|
@ -619,9 +619,17 @@ void DIALOG_SPICE_MODEL::updateFromFile( wxComboBox* aComboBox,
|
||||||
{
|
{
|
||||||
wxString curValue = aComboBox->GetValue();
|
wxString curValue = aComboBox->GetValue();
|
||||||
const wxString keyword( aKeyword.Lower() );
|
const wxString keyword( aKeyword.Lower() );
|
||||||
|
wxFileName filePath( aFilePath );
|
||||||
|
|
||||||
|
if( !filePath.Exists() )
|
||||||
|
{
|
||||||
|
// Look for the file in the project path
|
||||||
|
filePath.SetPath( Prj().GetProjectPath() );
|
||||||
|
}
|
||||||
|
|
||||||
wxTextFile file;
|
wxTextFile file;
|
||||||
|
|
||||||
if( !file.Open( aFilePath ) )
|
if( !file.Open( filePath.GetFullPath() ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
aComboBox->Clear();
|
aComboBox->Clear();
|
||||||
|
|
Loading…
Reference in New Issue