Only dump one top-level submenu.
This commit is contained in:
parent
11e11d97b2
commit
ed2e8e3f69
|
@ -81,6 +81,10 @@ Fl_Menu_Settings::dump ( Fl_Menu_ *bar, const Fl_Menu_Item *menu, FILE *fp, int
|
|||
|
||||
/* recurse */
|
||||
m = dump( bar, ++m, fp, depth + 1 );
|
||||
|
||||
if ( ! depth )
|
||||
break;
|
||||
else
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -112,6 +116,7 @@ Fl_Menu_Settings::dump ( Fl_Menu_ *bar, const Fl_Menu_Item *menu, FILE *fp, int
|
|||
fprintf( fp, "%s\n", path + strlen( path ) + 1 );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return m;
|
||||
|
|
Loading…
Reference in New Issue