Fix EESchema crash bug on Mac with wxWidgets 2.9
This commit is contained in:
parent
d24caad246
commit
86a6c4de3b
|
@ -104,7 +104,10 @@ void WinEDA_App::MacOpenFile( const wxString &fileName )
|
|||
wxFileName filename = fileName;
|
||||
WinEDA_SchematicFrame * frame = ((WinEDA_SchematicFrame*) GetTopWindow());
|
||||
|
||||
if(!filename.FileExists())
|
||||
if( !frame )
|
||||
return;
|
||||
|
||||
if( !filename.FileExists() )
|
||||
return;
|
||||
|
||||
frame->LoadOneEEProject( fileName, false );
|
||||
|
|
Loading…
Reference in New Issue