Skip to content

Instantly share code, notes, and snippets.

@metacollin
Last active Sep 1, 2017
Embed
What would you like to do?
diff --git a/kicad/kicad.cpp b/kicad/kicad.cpp
index da0a10743..76ffcc9f6 100644
--- a/kicad/kicad.cpp
+++ b/kicad/kicad.cpp
@@ -173,7 +173,7 @@ void PGM_KICAD::MacOpenFile( const wxString& aFileName )
KICAD_MANAGER_FRAME* frame = (KICAD_MANAGER_FRAME*) App().GetTopWindow();
- if( !aFileName.empty && wxFileExists( aFileName ) )
+ if( !aFileName.empty() && wxFileExists( aFileName ) )
frame->LoadProject( wxFileName( aFileName ) );
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment