Increased max string sizes for load lua file dialog directory pathing for Qt GUI. Just incase users have long directory paths, set max path size to 2048 bytes.
This commit is contained in:
parent
eae4dd8312
commit
16bec45063
|
@ -273,8 +273,8 @@ void LuaControlDialog_t::openLuaScriptFile(void)
|
||||||
int ret, useNativeFileDialogVal;
|
int ret, useNativeFileDialogVal;
|
||||||
QString filename;
|
QString filename;
|
||||||
std::string last;
|
std::string last;
|
||||||
char dir[512];
|
char dir[2048];
|
||||||
char exePath[512];
|
char exePath[2048];
|
||||||
const char *luaPath;
|
const char *luaPath;
|
||||||
QFileDialog dialog(this, tr("Open LUA Script"));
|
QFileDialog dialog(this, tr("Open LUA Script"));
|
||||||
QList<QUrl> urls;
|
QList<QUrl> urls;
|
||||||
|
@ -312,7 +312,7 @@ void LuaControlDialog_t::openLuaScriptFile(void)
|
||||||
if (luaPath)
|
if (luaPath)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
char stmp[1024];
|
char stmp[2048];
|
||||||
|
|
||||||
i = j = 0;
|
i = j = 0;
|
||||||
while (luaPath[i] != 0)
|
while (luaPath[i] != 0)
|
||||||
|
|
Loading…
Reference in New Issue