OPEN-171: the save file dialog incorrectly uses type codes as extensions
parent
dc7d287717
commit
d68f254c66
|
|
@ -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 ) ];
|
||||
|
|
|
|||
Loading…
Reference in New Issue