bugfix: dialogs.ChooseFilesToOpen

This commit is contained in:
Araq 2010-11-01 23:39:23 +01:00
commit 651686cdfe
2 changed files with 6 additions and 0 deletions

View file

@ -129,6 +129,10 @@ proc ChooseFilesToOpen*(window: PWindow, root: string = ""): seq[string] =
inc(i)
if buf[i] == '\0': break
for i in 0..result.len-1: result[i] = os.joinPath(path, result[i])
else:
# only one file selected --> gosh, what an ungly thing
# the windows API is
add(result, path)
else:
var chooser = file_chooser_dialog_new("Open Files", window,
FILE_CHOOSER_ACTION_OPEN,