diff --git a/Common/OpenFile.cpp b/Common/OpenFile.cpp index 55a21791007c15c1040564d6bccaa8232a2758b5..e3206ceed7c8d900db18982179572cef6143b9ef 100644 --- a/Common/OpenFile.cpp +++ b/Common/OpenFile.cpp @@ -435,6 +435,7 @@ void OpenProject(const char *name) void OpenProjectMacFinder(const char *filename) { +#if defined(HAVE_FLTK) static int first = 1; if(first || !GUI::available()){ // just copy the filename: it will be opened when the GUI is ready @@ -444,8 +445,7 @@ void OpenProjectMacFinder(const char *filename) } else{ OpenProject(filename); -#if defined(HAVE_FLTK) Draw(); -#endif } +#endif }