From 13d31d17ef52c140dc6e60988be86407af6ce371 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 21 Jul 2013 16:38:32 -0700 Subject: [PATCH] Return full paths from aegisub.dialog.open rather than just filenames --- aegisub/src/auto4_lua_progresssink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/auto4_lua_progresssink.cpp b/aegisub/src/auto4_lua_progresssink.cpp index 18ea4df99..0e7370b4a 100644 --- a/aegisub/src/auto4_lua_progresssink.cpp +++ b/aegisub/src/auto4_lua_progresssink.cpp @@ -211,7 +211,7 @@ namespace Automation4 { if (multiple) { wxArrayString files; - diag.GetFilenames(files); + diag.GetPaths(files); lua_newtable(L); for (size_t i = 0; i < files.size(); ++i) { @@ -222,7 +222,7 @@ namespace Automation4 { return 1; } - lua_pushstring(L, diag.GetFilename().utf8_str()); + lua_pushstring(L, diag.GetPath().utf8_str()); return 1; }