mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #2325 from Areloch/fileDialogReturnBuffer
Moves the path return from fileDialog through the returnBuffer
This commit is contained in:
commit
b445b74bb2
1 changed files with 2 additions and 2 deletions
|
|
@ -285,9 +285,9 @@ bool FileDialog::Execute()
|
||||||
{
|
{
|
||||||
// Single file selection, do it the easy way
|
// Single file selection, do it the easy way
|
||||||
if(mForceRelativePath)
|
if(mForceRelativePath)
|
||||||
mData.mFile = Platform::makeRelativePathName(resultPath.c_str(), NULL);
|
mData.mFile = Con::getReturnBuffer(Platform::makeRelativePathName(resultPath.c_str(), NULL));
|
||||||
else
|
else
|
||||||
mData.mFile = resultPath.c_str();
|
mData.mFile = Con::getReturnBuffer(resultPath.c_str());
|
||||||
}
|
}
|
||||||
else if (mData.mStyle & FileDialogData::FDS_MULTIPLEFILES)
|
else if (mData.mStyle & FileDialogData::FDS_MULTIPLEFILES)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue