1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 09:20:38 +00:00

Fixes incorrect behavior of file dialog's path list

Hitting ENTER when no item was selected would pretend to enter inexistent folders.
This commit is contained in:
Fellippe Heitor 2020-02-28 00:52:16 -03:00
parent f9611409ef
commit 272336f764

View file

@ -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$)