summaryrefslogtreecommitdiff
path: root/indra/newview/llfilepicker.cpp
diff options
context:
space:
mode:
authorIma Mechanique <none@none>2011-12-25 23:09:32 +0000
committerIma Mechanique <none@none>2011-12-25 23:09:32 +0000
commit032a5e45728597106e07d2d22de3799aaaaf4923 (patch)
tree56e8d8cb316dab476b5df8b7916a98cebeea8a7d /indra/newview/llfilepicker.cpp
parent04d5ba4ab982eed493502dca228134191acb78da (diff)
Replacing file filter for windows that was mistakenly removed.
Diffstat (limited to 'indra/newview/llfilepicker.cpp')
-rw-r--r--indra/newview/llfilepicker.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llfilepicker.cpp b/indra/newview/llfilepicker.cpp
index ceb4060bc2..8024755e86 100644
--- a/indra/newview/llfilepicker.cpp
+++ b/indra/newview/llfilepicker.cpp
@@ -502,6 +502,14 @@ BOOL LLFilePicker::getSaveFile(ESaveFilter filter, const std::string& filename)
L"Compressed Images (*.j2c)\0*.j2c\0" \
L"\0";
break;
+ case FFSAVE_SCRIPT:
+ if (filename.empty())
+ {
+ wcsncpy( mFilesW,L"untitled.lsl", FILENAME_BUFFER_SIZE);
+ }
+ mOFN.lpstrDefExt = L"txt";
+ mOFN.lpstrFilter = L"LSL Files (*.lsl)\0*.lsl\0" L"\0";
+ break;
default:
return FALSE;
}