From d8aced6771c13f291427bba8711c76184697ea28 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 12 Oct 2012 12:04:17 +0200 Subject: [PATCH] Fix browsing for path A pathname was still prefixed with the cuurent directory. --- dialogs.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dialogs.c b/dialogs.c index fdf2d57..d142751 100644 --- a/dialogs.c +++ b/dialogs.c @@ -2295,7 +2295,10 @@ BrowseOK (int n) } if(!fileName[0]) return FALSE; // refuse OK when no file if(!savMode[0]) { // browsing for name only (dialog Browse button) - snprintf(title, MSG_SIZ, "%s/%s", curDir, fileName); + if(fileName[0] == '/') // We already had a path name + snprintf(title, MSG_SIZ, "%s", fileName); + else + snprintf(title, MSG_SIZ, "%s/%s", curDir, fileName); SetWidgetText((Option*) savFP, title, TransientDlg); currentCps = savCps; // could return to Engine Settings dialog! return TRUE; -- 1.7.0.4