Commit 86a6c4de authored by Jason Oster's avatar Jason Oster Committed by Wayne Stambaugh

Fix EESchema crash bug on Mac with wxWidgets 2.9

parent d24caad2
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment