summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/file_chooser.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx
index 9e5427b3c..f7d2ec404 100644
--- a/test/file_chooser.cxx
+++ b/test/file_chooser.cxx
@@ -106,8 +106,11 @@ main(int argc, // I - Number of command-line arguments
int argn = 1;
#ifdef __APPLE__
// OS X may add the process number as the first argument - ignore
+ // FIXME: Fl::args() should remove the Apple specific arguments form argc and argv
if (argc>argn && strncmp(argv[1], "-psn_", 5)==0)
argn++;
+ if (argc>argn+1 && strcmp(argv[argn], "-NSDocumentRevisionsDebugMode") == 0)
+ argn+=2;
#endif
if (argc > argn)
filter->value(argv[argn]);