OPEN-171: the save file dialog incorrectly uses type codes as extensions

master
Geenz 2013-07-11 19:43:02 -04:00
parent dc7d287717
commit d68f254c66
1 changed files with 2 additions and 2 deletions

View File

@ -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 ) ];