Skip to content
Snippets Groups Projects
Commit 53fc4eef authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix compile

parent e18418b0
No related branches found
No related tags found
No related merge requests found
...@@ -435,6 +435,7 @@ void OpenProject(const char *name) ...@@ -435,6 +435,7 @@ void OpenProject(const char *name)
void OpenProjectMacFinder(const char *filename) void OpenProjectMacFinder(const char *filename)
{ {
#if defined(HAVE_FLTK)
static int first = 1; static int first = 1;
if(first || !GUI::available()){ if(first || !GUI::available()){
// just copy the filename: it will be opened when the GUI is ready // just copy the filename: it will be opened when the GUI is ready
...@@ -444,8 +445,7 @@ void OpenProjectMacFinder(const char *filename) ...@@ -444,8 +445,7 @@ void OpenProjectMacFinder(const char *filename)
} }
else{ else{
OpenProject(filename); OpenProject(filename);
#if defined(HAVE_FLTK)
Draw(); Draw();
#endif
} }
#endif
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment