From: H.G. Muller Date: Sat, 31 Jul 2010 20:48:45 +0000 (+0200) Subject: Suggest default file name in browser dialog X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=eb3c0ffdc57f3d143d21c26237620a5b76eece06;p=xboard.git Suggest default file name in browser dialog The argument 'def' to FileNamePopUp() was not passed through to the new file-browser routine, which got NULL in stead, and thus started with an empty input field. --- diff --git a/xboard.c b/xboard.c index 475128d..ae13c6f 100644 --- a/xboard.c +++ b/xboard.c @@ -5146,7 +5146,7 @@ void FileNamePopUp(label, def, proc, openMode) int index; // this is not supported yet FILE *f; if(f = XsraSelFile(shellWidget, label, NULL, NULL, "could not open: ", - NULL, openMode, NULL, &name)) + def, openMode, NULL, &name)) (void) (*fileProc)(f, index=0, name); } }