BUG-3863: Populate the filename field when saving a file on OSX
parent
55ae6a7962
commit
1772dee245
|
|
@ -117,6 +117,7 @@ std::string* doSaveDialog(const std::string* file,
|
|||
|
||||
std::string *outfile = NULL;
|
||||
NSURL* url = [NSURL fileURLWithPath:fileName];
|
||||
[panel setNameFieldStringValue: fileName];
|
||||
[panel setDirectoryURL: url];
|
||||
if([panel runModal] ==
|
||||
NSFileHandlingPanelOKButton)
|
||||
|
|
|
|||
Loading…
Reference in New Issue