mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-04 22:20:24 +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:
parent
f9611409ef
commit
272336f764
|
@ -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$)
|
||||
|
|
Loading…
Reference in a new issue