summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorGeenz <geenz@geenzo.com>2013-07-11 19:43:02 -0400
committerGeenz <geenz@geenzo.com>2013-07-11 19:43:02 -0400
commitd68f254c66cc2c971cda14c59f8d16e8c44586d6 (patch)
treecef8fee81e48f9f58972c804ad98bb5967c9c493 /indra
parentdc7d287717ed42d1d8aa8b57cfd740ca75fe9e7b (diff)
OPEN-171: the save file dialog incorrectly uses type codes as extensions
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfilepicker_mac.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llfilepicker_mac.mm b/indra/newview/llfilepicker_mac.mm
index d8862bce57..c41639fbd5 100644
--- a/indra/newview/llfilepicker_mac.mm
+++ b/indra/newview/llfilepicker_mac.mm
@@ -106,8 +106,8 @@ std::string* doSaveDialog(const std::string* file,
{
NSSavePanel *panel = [NSSavePanel savePanel];
- NSString *typens = [NSString stringWithCString:type->c_str() encoding:[NSString defaultCStringEncoding]];
- NSArray *fileType = [[NSArray alloc] initWithObjects:typens,nil];
+ NSString *extensionns = [NSString stringWithCString:extension->c_str() encoding:[NSString defaultCStringEncoding]];
+ NSArray *fileType = [[NSArray alloc] initWithObjects:extensionns,nil];
//[panel setMessage:@"Save Image File"];
[panel setTreatsFilePackagesAsDirectories: ( flags & F_NAV_SUPPORT ) ];