BUG-3863: Populate the filename field when saving a file on OSX

master
Cinder Biscuits 2013-09-12 04:58:15 +00:00
parent 55ae6a7962
commit 1772dee245
1 changed files with 1 additions and 0 deletions

View File

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