From eb3c0ffdc57f3d143d21c26237620a5b76eece06 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 31 Jul 2010 22:48:45 +0200 Subject: [PATCH] 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. --- xboard.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); } } -- 1.7.0.4