From 272336f764fabc269230c494800011b4d42ec605 Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Fri, 28 Feb 2020 00:52:16 -0300 Subject: [PATCH] Fixes incorrect behavior of file dialog's path list Hitting ENTER when no item was selected would pretend to enter inexistent folders. --- source/ide/ide_methods.bas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 9d1c62c94..f1e2a451e 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -7728,7 +7728,7 @@ FUNCTION idefiledialog$(programname$, mode AS _BYTE) END IF IF focus = 3 THEN - IF K$ = CHR$(13) OR info = 1 THEN + IF (K$ = CHR$(13) OR info = 1) AND o(3).sel >= 1 THEN path$ = idezchangepath(path$, idetxt(o(3).stx)) idetxt(o(2).txt) = idezfilelist$(path$, AllFiles, "") idetxt(o(3).txt) = idezpathlist$(path$)